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