squid bypass

Taking care of your Linux box.

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.
venky145
Havaldaar
 
Posts: 118
Joined: Thu Jan 13, 2005 2:35 pm
WLM: ranga72
Yahoo Messenger: venky145
Location: qatar

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

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
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

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
kbukhari
Major General
 
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Website: http://kashifbukhari.com
Location: Lahore

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
imzee
Lance Naik
 
Posts: 17
Joined: Fri Sep 14, 2007 2:30 pm
WLM: imtiazmustafa@hotmail.com
Location: Saddar


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron