public:squid_update_proxy
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| public:squid_update_proxy [2020/03/11 16:50] – created jehaverlack | public:squid_update_proxy [2024/01/25 03:31] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Linux Update Proxy Server ====== | ====== Linux Update Proxy Server ====== | ||
| - | A light weight | + | A light weight |
| + | See: https:// | ||
| ===== Serverside ===== | ===== Serverside ===== | ||
| + | |||
| + | Add the following to the Squid Config: | ||
| + | |||
| + | **/ | ||
| + | < | ||
| + | ... | ||
| + | |||
| + | # Auth | ||
| + | auth_param basic program / | ||
| + | auth_param basic children 5 | ||
| + | auth_param basic realm Squid Basic Authentication | ||
| + | auth_param basic credentialsttl 2 hours | ||
| + | acl auth_users proxy_auth REQUIRED | ||
| + | http_access allow auth_users | ||
| + | |||
| + | # | ||
| + | # Recommended minimum Access Permission configuration: | ||
| + | # | ||
| + | # Deny requests to certain unsafe ports | ||
| + | http_access deny !Safe_ports | ||
| + | |||
| + | ... | ||
| + | |||
| + | # Uncomment and adjust the following to add a disk cache directory. | ||
| + | #cache_dir ufs / | ||
| + | cache_dir ufs / | ||
| + | |||
| + | </ | ||
| + | |||
| + | Use htpasswd to create the password file with the **update-user**: | ||
| + | < | ||
| + | sudo htpasswd -c / | ||
| + | </ | ||
| + | |||
| + | ==== Firewall ==== | ||
| + | Be sure to open up firewall services for squid on port 3128. | ||
| + | |||
| + | e.g. on CentOS 7,8 | ||
| + | < | ||
| + | firewall-cmd --zone=public --add-service=squid --permanent | ||
| + | </ | ||
| ===== Clientside ===== | ===== Clientside ===== | ||
| + | |||
| + | ==== RedHat / CentOS ==== | ||
| + | On YUM clients append the following lines to | ||
| + | |||
| + | **/ | ||
| + | < | ||
| + | proxy=http:// | ||
| + | proxy_username=update-user | ||
| + | proxy_password=******** | ||
| + | </ | ||
| + | |||
| + | ==== Debian / Ubuntu / Raspbian ==== | ||
| + | On apt-get Clients create the file: | ||
| + | |||
| + | / | ||
| + | < | ||
| + | Acquire:: | ||
| + | </ | ||
| + | |||
| + | |||
| + | Then run apt-get update or apt-get install a package | ||
public/squid_update_proxy.1583945450.txt.gz · Last modified: (external edit)
