Re: [CentOS] How to setup both Transpaent Proxy and firewall on the same Machine.

2007-06-13 Thread Indunil Jayasooriya
Thanks, By now I have solved it. > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT > --to-port 3128 Which side is eth0 pointing to? LAN or Internet? If it's the Internet side then you need to change the above to the LAN side. U R RIGHT. eth0 is connected to INTERNET.

Re: [CentOS] How to setup both Transpaent Proxy and firewall on the same Machine.

2007-06-13 Thread Robert Spangler
On Tue June 12 2007 03:50, Indunil Jayasooriya wrote: > And, Then, I did below command. > > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT > --to-port 3128 Which side is eth0 pointing to? LAN or Internet? If it's the Internet side then you need to change the above to th

[CentOS] How to setup both Transpaent Proxy and firewall on the same Machine.

2007-06-12 Thread Indunil Jayasooriya
Hi ALL, I want to setup Transpaent Proxy on the box running iptables Firewall. With iptables, I have given below rules. iptables -F INPUT iptables -F OUTPUT iptables -F FORWARD iptables -F -t nat iptables -F -t mangle #Enabling ip forwarding echo "1" > /proc/sys/net/ipv4/ip_forward #enable s