User Tools

Site Tools


public:squid_update_proxy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
public:squid_update_proxy [2020/03/11 18:24] – [Linux Update Proxy Server] jehaverlackpublic:squid_update_proxy [2020/03/11 18:36] – [RedHat / CentOS] jehaverlack
Line 33: Line 33:
 </code> </code>
  
 +Use htpasswd to create the password file with the **update-user**:
 +<code>
 +sudo htpasswd -c /etc/squid3/passwd update-user
 +</code>
  
 +==== Firewall ====
 +Be sure to open up firewall services for squid on port 3128.
 +
 +e.g. on CentOS 7,8
 +<code>
 +firewall-cmd --zone=public --add-service=squid --permanent
 +</code>
  
  
  
 ===== Clientside ===== ===== Clientside =====
 +
 +==== RedHat / CentOS ====
 +On YUM clients append the following lines to
 +
 +**/etc/yum.conf**
 +<code>
 +proxy=http://SQUID_SERVER_IP:3128
 +proxy_username=update-user
 +proxy_password=********
 +</code>
 +
 +==== Debian / Ubuntu / Raspbian ====
 +On apt-get Clients create the file:
 +
 +/etc/apt/apt.conf.d/apt.conf
 +<code>
 +Acquire::http::Proxy "http://update-user:********@SQUID_SERVER_IP:3128/";
 +</code>
 +
 +
 +Then run apt-get update or apt-get install a package
  
public/squid_update_proxy.txt · Last modified: 2024/01/25 03:31 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki