hi
I want to bypass squid for a particular ip only (not for all). how can i do.
squid bypass
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re: squid bypass
Dear venky145,
Salam,
Best Regards.
Salam,
Iptables may help you out.venky145 wrote:I want to bypass squid for a particular ip only (not for all). how can i do.
Best Regards.
Farrukh Ahmed
asuming you want to by pass 192.168.3.1x2oxen wrote:tell you current iptables rules and then the ip you want to bypass then make some typical rule to bypass that user
then enter bellow line before redirecting HTTP traffic to squid.
Code: Select all
iptables -t nat -A PREROUTING -s 192.168.3.1 -j RETURN
Bypass Selected User or IP use:
Bypass Selected Website use:
Bypass Selected Website with port 8080 use:
Code: Select all
iptables -t nat -A PREROUTING -i $CABLE -s 192.168.100.4 -j ACCEPT
Code: Select all
iptables -t nat -A PREROUTING -i $CABLE -d web-ip -j ACCEPT
Code: Select all
iptables -t nat -A PREROUTING -i $CABLE -d web-ip -p tcp --dport 8080 -j ACCEPT