how to bypass squid proxy to particular client
Hi All,
I have configured squid transparent proxy(squid3-3.1.19) server on ubuntu 12.04 and everything is working fine. By default all LAN user's port 80 request is redirecting to squid port 3128. But I don't want to redirect one of the client(172.16.0.*/16)'s port 80 request to 3128 and server should be working as only router to only that particular machine(172.16.0.*/16) and also there won't be any squid logs for this particular IP, which means I want to send port 80 request or all port requests that are coming from 172.16.0.*/16 to internet directly. So is it possible to achieve this either using iptables rules or squid ACLs. Thanks in advanse for your kind help. |
well clearly you can't bypass squid with squid config, but yes you can certainly change the redirection rule to exclude that IP, just add "-s ! 172.16.12.34" to the entry.
I wouldn't generally suggest that you shoudln't bypass squid though, but give it special rules within squid with an ACL. |
Thanks acid_kewpie
Quote:
Code:
FORWARD chain? |
well it's the nat table your redirect to port 3128 is on isn't it?
|
Quote:
I request you to post the command. Code:
172.16.0.128/16 --->port 80 request--->should directly goes to internet. |
May I get your kind help for the above?
|
you already have a redirect rule, just add the bit I gave you on to it.
|
All times are GMT -5. The time now is 06:06 PM. |