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.)

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:

sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp -m tcp --dport 80 -j
DNAT --to-destination 10.42.0.1:5123
sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp -m tcp --dport 443 -j
DNAT --to-destination 10.4.0.1:5124

please not that *iptables-restore* 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)

http://pritambaral.com/2012/05/device-agnostic-transparent-proxy-on-wifi/


*Regards,
Chhatoi Pritam Baral*



On Wed, Jun 20, 2012 at 10:55 AM, Nilesh Govindrajan
<[email protected]>wrote:

> On Wed, Jun 20, 2012 at 10:54 AM, Alok Singh Mahor <[email protected]>
> wrote:
> > Hi all,
> > I used to access internet via proxy server. (no direct connection is
> > available for me)
> > 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)
> >
> > 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)
> > please suggest me some method
> > thank you
> >
>
> Can you explain in more detail? What exactly do you want to do? Trying
> to share a broadband connection from your laptop?
>
> --
> Nilesh Govindarajan
> http://nileshgr.com
>
> --
> Mailing list guidelines and other related articles:
> http://lug-iitd.org/Footer
>

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to