Results 1 to 2 of 2
hello,
i have linux server 7.2 with squid as proxy server, ihave configured two network card on my linux machine
one with external ip i.e isp and one with internal ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-18-2003 #1Just Joined!
- Join Date
- Mar 2003
- Posts
- 36
iptable and redirect
hello,
i have linux server 7.2 with squid as proxy server, ihave configured two network card on my linux machine
one with external ip i.e isp and one with internal i.e lan ip 192.168.23.1. i have setup iptable for routing.
The client uses 192.168.23.1 internal ip as gateway so they can use messenger etc but i want all the http i.e port 80 request to be redirect on my local squid proxy port 3128 how can i do it.
bcoz i m authenticating my users with squid ncsa..
plz help.
- 03-18-2003 #2Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Add a rule with the REDIRECT target, like this:
Code:iptables -t nat -A PREROUTING -p tcp -s 192.168.0.0/16 --dport 80 -j REDIRECT --to-port 3128


Reply With Quote
