LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-15-2010, 10:36 PM   #1
its_my_style
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
Question [squid-users] deny website and allow it to specific Ip Address


hi..
Im working on Small Organization as a IT .our org has Squid Pxy Server. i did block some website by using below command in Squid.conf file so its has block entire users in my organinstionn

acl restrict dst-domain .my site - and its working properly..but i need to allow that site for specifi ip address

pls letme know how to do it

pls help

Sorry for my poor english
 
Old 07-16-2010, 12:59 AM   #2
jlanawalt
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian
Posts: 8

Rep: Reputation: 0
Add an allow rule first

Before the deny, set up an acl for the allowed IPs and then allow them to everywhere (or just have a rule allowing them just to the later-blocked dst-domain.)

acl unrestricted src xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
http_access allow unrestricted

Lots of other options are possible. See the acl examples on the squid wiki. I have an easier time understanding squidGuard's acl examples.
 
Old 07-16-2010, 06:44 AM   #3
its_my_style
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
hi jlanawalt

im ok with your pls advice whthere below command is alos possible with it

1./usr/local/etc/..... Create a file name call 'unrestricted' and apply below segment to it. 'acl unrestricted src xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx' then save and close

2. after that open squid.conf and add
acl unrestricted src unrestricted
http_access allow unrestricted

if this is not possible could you have any idea to allow specific ips same like i told you.

pls advice
 
Old 07-16-2010, 11:03 PM   #4
jlanawalt
LQ Newbie
 
Registered: Feb 2005
Distribution: Debian
Posts: 8

Rep: Reputation: 0
Just add the acl before your existing one

Sorry, we must not be communicating. I'm having a hard time understanding what you wrote.

Something about a file... Is your other rule in a file? How does squid find your other rule that is blocking these sites? Where ever it is, just before that add the ACL I suggested. It has to be before and not on the same line, see:

http://wiki.squid-cache.org/SquidFaq...2BAC8-Or_logic

If you are now asking "how do I include external files into squid, that's a horse of a different color. Search the documentation and wiki for that answer.
 
Old 07-18-2010, 09:18 PM   #5
its_my_style
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
hi jlanawalt

extremlly sorry for above reply,accually i need to allow restriced site by using below methord

1. create a file on diretory /usr/local/etc/ips.squid and add unblocked ips to that file


2. then open squid.conf file and add statemts as follows

acl unrestricted src "/usr/loca/ect/ips.txt
http_access allow unrestricted
Save close and restard the Services

but its not working so i need to now is there any methord to declear it or what is the wrong point in my order

pls advice
 
  


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
Deny specific address from at Postfix maceee Linux - Server 1 07-08-2010 06:40 PM
[SOLVED] how to monitor specific ip address in squid access.log struggled_newbie Linux - Newbie 2 06-21-2010 07:05 PM
How to Block(deny) perticuler website in certain times of the day , by using squid ? linuxcolor Linux - Server 7 07-04-2009 09:55 PM
Deny to cache a website in squid ridwan77 Linux - Newbie 3 03-24-2009 08:45 PM
block specific users in squid alan.belizario Linux - Security 4 09-09-2005 11:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:10 PM.

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