Squid transperant proxy in bridge mode
Hi Techie,
I configured squid in transperant proxy and it's working fine.Now i tried it in bridge mode for that i did setup for bridge mode and it's working fine.But i can not get any http request in squid access log.i can see traffic from my bridge.
tcpdump -i br0
configure bridge:
ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
Then used ebtables and ip tables for redirect port 80 traffic to port 3128 for squid caching.
ebtables -t broute -A BROUTING -p IPv4 --ip-protocol 6 \
--ip-destination-port 80 -j redirect --redirect-target ACCEPT
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 \
-j REDIRECT --to-port 3128
After applying this two rules,My internet is not working at user end.And when i removed these two rules , internet is working fine at user end.
when i add above two rules.I can see packet in
iptables -t nat -L -nvx and ebtables -t broute -L --Lc command
But internet is not working at user end.
Please suggest me for the same.
Regards,
Rocky
|