You are not logged in.

#1 2009-03-04 23:38:50

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

squid / iptables

I have squid proxy set up on 192.168.1.101 and two regular clients on .100 and 102
My router is on 254

Basically I just want to use iptables to force all http traffic to go through 192.168.1.101:3128
I used this guide here http://www.ubuntugeek.com/how-to-setup- … buntu.html

iptables -t nat -A PREROUTING -i ath0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.1.101:3128
iptables -t nat -A PREROUTING -i ath0 -p tcp -m tcp –dport 80 -j REDIRECT --to-ports 3128

The box I tried those iptables rules on is .102 (ubuntu box) and ath0 is the wireless card that is connected to the router .254
But it doesn't seem to be working. Am I missing something here?


neutral

Offline

#2 2009-03-05 06:22:55

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: squid / iptables

Does nobody know how to do this or am I not clear enough?


neutral

Offline

Board footer

Powered by FluxBB