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