This is a simply configuration settings for “Squid” server to be used as a proxy server to forward the connection thought the server.
Digested Authentication also added to force users who are not white-listed to authenticate before using the server. White-listed IP addresses won’t be authenticated for simplicity.
# File /etc/squid/squid.conf #+++++++++++++++++++++++++++ # Create Cache Directory cache_dir ufs /opt/squid/var/cache/ 500 16 256 # Access Control List for users acl my_machine src 192.168.1.250 acl ubuntu src 192.168.1.52 http_access allow my_machine http_access allow ubuntu #Authentication with digest mode - PASSWORD SENT IN MORE SECURE WAY AND DIGESTED auth_param digest program /usr/lib/squid/digest_file_auth -c /etc/squid/passwords auth_param digest realm proxy auth_param digest children 5 acl authenticated proxy_auth REQUIRED http_access allow authenticated #Privacy Things via off forwarded_for off follow_x_forwarded_for deny all
Hope this helps 🙂
BTC: bc1qrxmjgsc5a2fwn7zplpcu7665uq39tp2ss7luwk