LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-09-2009, 12:32 PM   #1
uwa45
Member
 
Registered: Oct 2006
Location: Lagos,Nigeria
Distribution: Fedora core 3, Redhat 9.0,Centos 4.6
Posts: 43

Rep: Reputation: 15
How to exclude certain ip from proxy restriction rule


Hi all,
i have install cent os as my internet gateway router and i also install squid in transperant mode so as to enforce my proxy restriction rules so all clints must go through squid to the internet weather their browser is set to the squid ip or not.
Now my issue is this. i have two other server with static ips that i don't want the restriction rules to affect so how do i do it as i would still want them to go through the squid but i don't want them to be affected by my restriction rules.

all other systems gets ip from the router which is also a dhcp server and the restriction rules are to deny certain websites.

Thanks.
 
Old 03-09-2009, 04:43 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Set up a second ACL to explicitly allow access to the two servers. Documentation here: http://www.visolve.com/squid/squid26...ntrols.php#acl
 
Old 03-11-2009, 06:24 AM   #3
uwa45
Member
 
Registered: Oct 2006
Location: Lagos,Nigeria
Distribution: Fedora core 3, Redhat 9.0,Centos 4.6
Posts: 43

Original Poster
Rep: Reputation: 15
hello,thanks for your reply. i tried the option in the link you sent but i got this error mesg. aclparse ipdata: warning:Netmask masks away paart of the specified ip in 10.234.0.2-10.234.0.3/255.255.255.0
Also the rule still apllies to the servers i want excluded from my rules. what do i do next?
Thanks.
 
Old 03-11-2009, 06:47 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
squid checks the rules from begging to end, and it applies first rule that matches, doesnt check other rules.
so your excluded rules for servers, must be defined before the restriction rules.

for example:
.......
acl server1 src 10.234.0.2
acl server2 src 10.234.0.3
http_acces allow server1
http_acces allow server2

other access/deny rules..

best regards
 
Old 03-25-2009, 03:39 AM   #5
uwa45
Member
 
Registered: Oct 2006
Location: Lagos,Nigeria
Distribution: Fedora core 3, Redhat 9.0,Centos 4.6
Posts: 43

Original Poster
Rep: Reputation: 15
Hey, thanks alot Maxut. you helped me get it working.
 
Old 03-25-2009, 10:39 AM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by uwa45
warning:Netmask masks away paart of the specified ip in 10.234.0.2-10.234.0.3/255.255.255.0
As for that specific warning, squid is telling you exactly what is wrong with your ACL. You're telling him to add 10.234.0.2 and 10.234.0.3 to the ACL, but then you're also telling him to add 10.234.0.0/24 to the ACL. Doesn't make sense, because the latter encompasses the former plus many more IPs.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables rule to ignore squid proxy server satish Linux - Networking 4 07-02-2008 07:26 AM
squid proxy restriction on peer-to-peer? (limewire) Teomari Slackware 3 03-29-2007 08:40 PM
download restriction over internet access using squid (proxy server) pankajkarde Linux - Server 4 03-21-2007 01:04 AM
restriction using squid(proxy) pankajkarde Linux - Server 1 03-17-2007 04:14 PM
exclude whole webseite from proxy caching cccc Linux - Networking 0 07-21-2004 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration