Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nat and transparent proxy with iptables

Status
Not open for further replies.

pichi

Programmer
Nov 12, 2000
156
EC
hi everybody, i have a redhat 8.0 server, on a local network, this server is an intranet server and gets online through a dialup connection, i configure iptables with nat, the nat is working perfect, (i create a script called nat at rc5.d), but i want to configure aditional a transparent proxy, so i read about that and add the following command:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
to my script nat, but when i get online with my ppp0 i can use the transparent proxy,. so i need to set the options at my browser so it can find the proxy server (port 8080), does anyone knows what am i doing wrong??

here the complete script nat:
modprobe iptable_nat
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top