Hi,<br><br>I made the change in the documentation pages too as it works without any issues, hope no one minds :)<br><br>Luffy <br><br>Message: 1<br>Date: Mon, 08 May 2006 18:48:57 +0200<br>From: laurent <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:laurent2b_wlan@yahoo.fr">
laurent2b_wlan@yahoo.fr</a>><br>Subject: Re: [isf-wifidog] Re: Wifidog + olsr<br>To: WiFiDog Captive Portal <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:wifidog@listes.ilesansfil.org">wifidog@listes.ilesansfil.org
</a>><br>Message-ID: <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:445F7679.7040608@yahoo.fr">445F7679.7040608@yahoo.fr</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>-----BEGIN PGP SIGNED MESSAGE-----
<br>Hash: SHA1<br><br>hi<br><br>thank you for your help<br>your script works fine here<br><br>cheers max<br><br>luffy .D a écrit :<br>> Hi Laurent,<br>><br>> Well what i tried is to mix both the scripts togeather..unlike running
<br>> the two scripts togeather.<br>> My final working script (the only script called) which is run by cron is:<br>><br>> wifidogolsr.sh<br>> ------------------------------<div style="direction: ltr;">-----------------------------------------------------------------------------------
<br>> #!/bin/sh<br>> #<br>> # Script to bypass HTTP interception for traffic forwarded by OLSR<br>> # bms 9-Aug-2005<br>> # Licensed under GPL<br>> #<br>> rm -f /tmp/get_neighbors.awk<br>> cat > /tmp/get_neighbors.awk <<__HERE1__
<br>> BEGIN {<br>> while("route -n"|getline) {<br>> if (/^[0-9]/) {<br>> if (0 < \$5) {<br>> if (\$3 == "<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://255.255.255.255/" target="_blank">
255.255.255.255</a> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://255.255.255.255/" target="_blank">http://255.255.255.255</a>>") {<br>> printf "%s\n", \$1;
<br>> }<br>> }<br>> }<br>> }<br>> }<br>> __HERE1__<br>><br>
> #BEGIN {<br>> # while("ip route"|getline) {<br>> # if (\$6 == "metric") {<br>> # if (\$7 > 0) {<br>> # printf "%s\n", \$1;
<br>> # }<br>> # }<br>> # }<br>> # }<br>> #__HERE1__<br>><br>><br>> iptables -t nat -D WiFiDog_Unknown -j OlsrNeighbors 2>&1 >/dev/null
<br>> iptables -t nat -F OlsrNeighbors 2>&1 >/dev/null<br>> iptables -t nat -X OlsrNeighbors 2>&1 >/dev/null<br>> iptables -t nat -N OlsrNeighbors<br>><br>> neighbors=$(awk -f /tmp/get_neighbors.awk)
<br>><br>> for _neighbor in ${neighbors} ; do<br>><br>> _mac=$(grep "^${_neighbor}" /proc/net/arp | awk '{print $4}')<br>> echo ${_mac}<br>> iptables -t nat -A OlsrNeighbors -m mac --mac-source ${_mac} \
<br>> -p tcp --dport 80 -j ACCEPT<br>><br>> done<br>><br>> iptables -t nat -I WiFiDog_Unknown -j OlsrNeighbors<br>><br>> -----------------------------------------------------------------------------------------------------------------
<br>><br>> What i have done as u see is replace the things which go into<br>> get_neighbors.awk in the script @ <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wifidog.org/" target="_blank">
wifidog.org</a> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wifidog.org/" target="_blank">http://wifidog.org</a>><br>> with the original things that kinda makes it same..............I am not
<br>> really intelligent in these but some how thing work so i am happy :)</div>