squid bypass

Taking care of your Linux box.
Post Reply
venky145
Havaldaar
Posts: 118
Joined: Thu Jan 13, 2005 2:35 pm
Location: qatar
Contact:

squid bypass

Post by venky145 »

hi

I want to bypass squid for a particular ip only (not for all). how can i do.
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: squid bypass

Post by LinuxFreaK »

Dear venky145,
Salam,
venky145 wrote:I want to bypass squid for a particular ip only (not for all). how can i do.
Iptables may help you out.

Best Regards.
Farrukh Ahmed
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

tell you current iptables rules and then the ip you want to bypass then make some typical rule to bypass that user
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Post by kbukhari »

x2oxen wrote:tell you current iptables rules and then the ip you want to bypass then make some typical rule to bypass that user
asuming you want to by pass 192.168.3.1
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
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
imzee
Lance Naik
Posts: 17
Joined: Fri Sep 14, 2007 2:30 pm
Location: Saddar

Post by imzee »

Bypass Selected User or IP use:

Code: Select all

iptables -t nat -A PREROUTING -i $CABLE -s 192.168.100.4 -j ACCEPT
Bypass Selected Website use:

Code: Select all

iptables -t nat -A PREROUTING -i $CABLE -d web-ip -j ACCEPT
Bypass Selected Website with port 8080 use:

Code: Select all

iptables -t nat -A PREROUTING -i $CABLE -d web-ip -p tcp --dport 8080 -j ACCEPT
Imtiaz Mustafa
CCENT, CCNA, JNCIA
Cell : +923452828799
e-mail : imtiazmustafa@hotmail.com
Post Reply