LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2011, 03:15 AM   #1
cttc_squid
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Rep: Reputation: Disabled
How to allow a single site to particular IP pool?


I've configured squid for my network with restriction to some sites.

Now i want to allow only one site for particular IP pool say 192.168.1.0/28.

Pl help me out in doing so.

Thanks in advance.
 
Old 08-26-2011, 05:19 PM   #2
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 152

Rep: Reputation: 19
First of all, have a look on search engines (google) with the adequate words (squid acl), as I did, right now.

acl mynet src 192.168.1.0/28
acl urlok url_regex ^http://...

http_access allow urlok AND mynet
http_access deny all

It should work...
 
Old 08-29-2011, 12:42 AM   #3
cttc_squid
LQ Newbie
 
Registered: Aug 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Fantasio View Post
First of all, have a look on search engines (google) with the adequate words (squid acl), as I did, right now.

acl mynet src 192.168.1.0/28
acl urlok url_regex ^http://...

http_access allow urlok AND mynet
http_access deny all

It should work...


Thank you sir,

I tried the command but it shows error for "http_access allow urlok AND mynet"

After entering these lines i get a problem in restaring squid service.

Also i can not enter "http_access deny all"
as for rest of my network i.e from 192.168.1.16 onwards i want my regular net should run.

Please guide.
 
Old 08-30-2011, 01:38 AM   #4
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 152

Rep: Reputation: 19
Post the error you have when you start or restart squid.
After all your rules,you need to apply "http_access deny all" eitherit means that all your rules are ineffective.

Did you create the acl first ?
 
  


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
Doubt Regarding Multiple site hosting on single server priyadarshan Linux - Networking 4 09-04-2009 10:34 AM
Multiheaded X.org with a single workspace-pool Evo-- Linux - Desktop 5 10-06-2008 07:22 AM
Fast Download Site for Linux, enables >4GB Download of single file TigerLinux Linux - Distributions 9 10-29-2005 12:45 PM
Need a site:DDR modules single sided/double sided RobertP Linux - Hardware 2 08-02-2004 04:32 PM
Is it possible to have more than one site on a single server? javaarmy Linux - General 1 10-12-2003 07:51 PM


All times are GMT -5. The time now is 08:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration