You want to restrict one of your local IPs from getting on the internet?
Something like this:
acl LAN_Range src 192.168.1.0/24
acl No_Internet_For_You src 192.168.1.X (replace the X with the
IP you want to block).
http_access deny No_Internet_For_You
http_access allow LAN_Range
You can repeat the "no internet for you" line as many times as required,
and change the IP.
Also, remember that order of http_access lines is important though...
Squid stops at the first match.
Tim B
Garry D. Chapple wrote:
Hi,
I am a complete Squid newb with my first install done only yesterday,
2.6 stable(18). Can someone please help with basic ACL config for
network IP's, I would like to allow my local network and restrict just
one or two hosts by IP address. I have Googled a little but as there are
so many ACL configurations it's difficult to know which one works!
Squid is up and running well and I have an ACL to allow my local network
(acl our_networks src 192.168.1.0/24) but how do I then deny access to
just a single host IP? Any examples or good web sites with these kinds
of examples would be much appreciated.
Regards,
Garry C
**********************************************************************
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**********************************************************************