Squid Proxy
Squid Proxy
= change accordingly
+ http_port 10.209.35.84:3269
= Define SSL and safe ports that you would like to allow
= Adapt to list your (internal) IP networks from where browsing should
be allowed
= Define your LAN acl as follows
+ acl mylan src
+ 10.209.35.84/24
= We can also define other domains that you wish to block
= if you have multiple IP addresses assigned to your server we can
chane proxy server outgoing IP address as follows:
+ tcp_outgoing_address x.x.x.x
= Set cache memory size as per your neeeds
+ cache_mem 256 MB
= Specify a list of DNS name servers to use
+ dns_nameserver 127.0.0.1
4) Start/Stop/Restart Squid
- First, turn on Squid service at boot time using the systemctl command:
= systemctl enable
squid.service
- The syntax is as follows:
= Start the Squid server
systemctl start
squid.service
systemctl stop
squid.service
= OR
= squid -k shutdown
Restart the Squid server
systemctl restart
squid.service
5) Block domains
- example (blocking twitter.com and facebook.com)
= acl socialsite dstdomain.twitter.com
= acl socialsite dstdomain.facebook.com
= http_access deny socialdiste