LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-15-2005, 02:29 PM   #1
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Rep: Reputation: 30
Allowing only certain ip ranges to access squid


How can i make squid, only allow requests from the 10.0.0.0 and 172.16.0.0 network ?
 
Old 06-15-2005, 03:23 PM   #2
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
try something like:

acl allowed_ips src 10.0.0.0-10.0.0.254
acl allowed_ips src 172.16.0.0-172.16.0.254

http_access allow allowed_ips
http_access deny all

This will allow web requests from the ips you specified, and deny web access to all other ip ranges.
 
Old 06-16-2005, 04:10 PM   #3
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Original Poster
Rep: Reputation: 30
10x it worked like a charm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Squid not allowing Outlook express niranjan_mr Linux - Software 2 10-10-2005 07:04 AM
Blocking port 80 on NAT and allowing browsing thru squid krishvij Linux - Networking 2 07-19-2005 05:10 AM
Allowing only SFTP access vanibhat Linux - Enterprise 8 06-30-2005 02:10 AM
Allowing FTP thru Squid? krishvij Linux - Security 2 06-28-2005 11:40 PM
Allowing Mails thru Squid Proxy? krishvij Linux - Newbie 3 04-07-2005 04:12 AM


All times are GMT -5. The time now is 05:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration