Search squid archive

Fwd: Setting a whitelist for ONE IP-Adress

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can you post me a default config with my three lines in it, so that
the IP-Adress is using the whitelist defined and any other IPs can
reach any site?

Try below lines


# Define the pc/ip, which has to squid later
acl pc101 src 192.168.100.101/255.255.255.255

# define the whitelist
acl whitelist url_regex -i "/squid/etc/whitelist.allow"

http_access deny pc101 !whitelist

then, create below file.

touch /squid/etc/whitelist.allow

and add below domains to that file.
.allowedsites1.com
.allowedsites2.com
.allowedsites3.com

#the rest has FULL ACCESS
acl mynet 192.168.100.0/24
http_access allow mynet

restart squid

Happy Squiding



-- 
Thank you
Indunil Jayasooriya

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux