Allowing access to certain sites from certain IP's with ACL's - H elp Please.

From: Emile Coetzee <[email protected]>
Date: Mon, 21 Jun 1999 19:33:32 +0200

I am trying to set up acl's that will only allow access to specified sites
to users with specified IP's. I think I've got the basic idea right (from
what I found in the FAQ) but instead of usernames I'd like to specify IP's
I'm not sure how to make squid check the IP making the request (and how it
interprets this info) and what to match this interpretation to. Eventually
I'd like to set up groups of users who have differnt levels of internet
access.

srcdomain and src does not seem to work as my user IP checker (allowips).
Any suggestions?

I'm running squid 1.1.2

in squid.conf:
#List of sites users can surf to
acl sites src "/usr/local/squid/etc/sites"
#List of user IPs that are allowed to surf these sites
acl allowips srcdomain "/usr/local/squid/etc/allowips"

http_access allow sites allowips

contents of sites:
www.netscape.com
www.cnn.com

contents of allowips:
1.2.3.4
5.6.7.8

Thanks in advance
Emile
-----------------------------------------------------------
Emile Coetzee
Jnr. Network Admin & Technical Support
PQ Tetra http://www.pqtetra.co.za
Tel: +27 21 550 3358
Fax: +27 21 550 3356
Cell: +27 082 3312160
Received on Mon Jun 21 1999 - 11:26:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:46:56 MST