i have installed rhd 7.1 as getway (masquerading with succes)
between 11.11.11.11/24 and the internet so the linux=getway has 2 eth :
eth1 11.11.11.11/32
eth0 193.251.16.xxx/32 (to internet)
with the line:
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
It's ok !!!
i want know to made it a transparent proxy, with squid i have changed my script as :
#iptables -t nat -A PREROUTING -s 11.11.11.11/24 -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 192.168.1.122:8080
#iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
but when the pcs behind the getway retreive a web page i can't
with #tail -f /var/log/squid/access.log
I have:
"1016637788.559 0 11.11.11.10 NONE/400 1056 GET / - NONE/- -"
I have changed my script like this but with no succes :
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
between 11.11.11.11/24 and the internet so the linux=getway has 2 eth :
eth1 11.11.11.11/32
eth0 193.251.16.xxx/32 (to internet)
with the line:
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
It's ok !!!
i want know to made it a transparent proxy, with squid i have changed my script as :
#iptables -t nat -A PREROUTING -s 11.11.11.11/24 -p tcp -d 0/0 --dport 80 -j DNAT --to-destination 192.168.1.122:8080
#iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
but when the pcs behind the getway retreive a web page i can't
with #tail -f /var/log/squid/access.log
I have:
"1016637788.559 0 11.11.11.10 NONE/400 1056 GET / - NONE/- -"
I have changed my script like this but with no succes :
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
#iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE