I installed squid proxy on my local machine running at port # 3128.
To make is transparent proxy, I executed following command.
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128
But somehow it is not working. I executed following command and found that none of the packet is meeting this rule...
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128
root@test-desktop:/home/te
st# iptables -nv -t nat -L PREROUTING
Chain PREROUTING (policy ACCEPT 81 packets, 13075 bytes)
pkts bytes target prot opt in out source destination
0 0 REDIRECT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 3128
root@test-desktop:/home/te
st#
Any idea ?
Start Free Trial