Created
December 16, 2022 10:00
-
-
Save Lucho00Cuba/a537359e310966fe3e573da5b0dba8a4 to your computer and use it in GitHub Desktop.
Squid Conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS | |
| # | |
| include /etc/squid/conf.d/* | |
| auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd | |
| auth_param basic realm proxy | |
| acl authenticated proxy_auth REQUIRED | |
| # Example rule allowing access from your local networks. | |
| acl localnet src proxy.safehome.local | |
| # Adapt localnet in the ACL section to list your (internal) IP networks | |
| # from where browsing should be allowed | |
| #http_access allow localnet | |
| http_access allow localhost | |
| acl whitelist dstdomain .safehome.local | |
| http_access allow whitelist authenticated | |
| #http_access allow authenticated | |
| # And finally deny all other access to this proxy | |
| http_access deny all | |
| acl SSL_ports port 443 | |
| http_access deny CONNECT !SSL_ports | |
| http_port 3128 | |
| coredump_dir /var/spool/squid | |
| refresh_pattern ^ftp: 1440 20% 10080 | |
| refresh_pattern ^gopher: 1440 0% 1440 | |
| refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 | |
| refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims | |
| refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims | |
| refresh_pattern \/InRelease$ 0 0% 0 refresh-ims | |
| refresh_pattern \/(Translation-.*)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims | |
| refresh_pattern . 0 20% 4320 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment