squid bypass

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

squid bypass

Postby venky145 » Tue Nov 25, 2008 11:50 am

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

Postby LinuxFreaK » Wed Nov 26, 2008 11:57 am

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:

Postby x2oxen » Fri Nov 28, 2008 1:11 pm

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:

Postby kbukhari » Fri Nov 28, 2008 1:58 pm

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
Contact:

Postby imzee » Sun Dec 07, 2008 9:05 pm

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


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 2 guests