Note for Proxy Server Squid
Note for Proxy Server Squid
Installation
Install squild and check the status.
1
2
sudo apt install squid
sudo systemctl status squid.service
Secure
Create a passwd file for the squid.
1
2
sudo apt install apache2-utils
sudo htpasswd -c /etc/squid/passwords your_squid_username
Configure
Configure squid.
1
sudo vim /etc/squid/squid.d/lephix.conf
Add following content to this file.
1
2
3
4
5
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwords
auth_param basic realm proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated
Restart
1
sudo systemctl restart squid.service
Test
Test for the proxy.
1
curl -v -x http://username:password@155.248.193.206:80 https://www.google.com/
This post is licensed under CC BY 4.0 by the author.