<div dir="ltr"><span>On similar lines, I have set-up transparent proxy so that devices connecting to my WiFi do not need to set-up proxy on their own (but will still work if they do.) Note however, that this is an Infrastructure Wireless network I created (much like what Connectify does on Windows.)</span><br>


<br><span>I have used a modified set of iptables rules for sharing internet over Ad-Hoc WiFi network, but haven't updated it on the blog. However, here are the commands:</span><div><br></div><div>
<font color="#222222" face="arial, sans-serif">sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp -m tcp --dport 80 -j DNAT --to-destination </font><a href="http://10.42.0.1:5123/" style="font-family:arial,sans-serif;font-size:13px;color:rgb(17,85,204)" target="_blank">10.42.0.1:5123</a><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">


sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp -m tcp --dport 443 -j DNAT --to-destination <a href="http://10.4.0.1:5124/" style="color:rgb(17,85,204)" target="_blank">10.4.0.1:5124</a></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">


<br></div><div><i><font color="#222222" face="arial, sans-serif">NB: 10.42.0.1 is the local Wireless interface address under Ad-Hoc as created by NetWorkManager. 192.168.0.1 is the address if you follow my previous blog posts on creating Infrastructure Wireless APs</font></i></div>


<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">please note that <b>iptables-restore</b> washes away previous rules, but the two commands above only add to iptables, not replace them (much like the difference between > and >> in bash redirection)</div>


<br><a href="http://pritambaral.com/2012/05/device-agnostic-transparent-proxy-on-wifi/" style="font-family:arial,sans-serif;font-size:13px;color:rgb(17,85,204)" target="_blank">http://pritambaral.com/2012/05/device-agnostic-transparent-proxy-on-wifi/</a></div>


<div><br></div><div dir="ltr"><div><span style="color:rgb(128,128,128);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px"><strong><span style="font-size:11px">Regards,</span></strong></span></div><div><div style="font-family:Verdana,Arial,Helvetica,sans-serif">


<div style="margin-top:0px;margin-right:0px;margin-bottom:8px;margin-left:0px"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="color:rgb(128,128,128)"><strong><font>Chhatoi Pritam Baral</font></strong></span></p>


</div></div></div></div><br>
<br><br><div class="gmail_quote">On Wed, Jun 20, 2012 at 10:55 AM, Alok Singh Mahor <span dir="ltr"><<a href="mailto:alokmahor@gmail.com" target="_blank">alokmahor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>Hi all,<br>I used to access internet via proxy server. (no direct connection is available for me)<br>when
 I share my internet connection to other laptop one need to set proxy in
 that laptop too. (I share internet connection using network manager)<br>
<br>I want to share my internet that can work without proxy (so there 
will be no need to set proxy on the laptop which is accessing my 
internet connection)<br>please suggest me some method<br>thank you<br clear="all"><br>-- <br>Alok Singh Mahor<br><a href="http://alokmahor.co.cc/" target="_blank">http://alokmahor.co.cc</a><br><font color="#888888"><span></span></font>Join the next generation of computing, Open Source and Linux/GNU!!<br>



<br>
</div></div><br>--<br>
ubuntu-in mailing list<br>
<a href="mailto:ubuntu-in@lists.ubuntu.com" target="_blank">ubuntu-in@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-in" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-in</a><br>
<br></blockquote></div><br></div>