Configure Transparent proxy on Centos 7
Hi Friends ,
I am using "CentOS Linux release 7.1.1503 (Core)" . I can successfully configured proxy server on it and can browsing using squid .
But Now I want to use it as transparent proxy . so I give the below rules :
===========================================================
eth0 : 192.168.1.85
eth1 : 10.134.11.46
iptables -I INPUT -s 10.134.11.0/24 -p tcp --dport 3128 -j ACCEPT
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 192.168.1.85:3128
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
=============================================================
But its not wokring ... I am new on centos 7 , would anybody please help me ?
Last edited by shipon_97; 08-13-2015 at 12:47 AM.
|