Operations 4 min read

Configure Jenkins Proxy with Squid for Domestic Plugin Access

This guide walks you through setting up a Squid proxy on Linux, configuring Jenkins to use the proxy, adding a domestic plugin repository, and adjusting firewall rules, enabling reliable network connectivity and plugin installation for Jenkins in environments with restricted internet access.

Linux Ops Smart Journey
Linux Ops Smart Journey
Linux Ops Smart Journey
Configure Jenkins Proxy with Squid for Domestic Plugin Access

Deploy Squid Network Proxy

Install Squid on the host: $ sudo yum install squid -y Configure Squid by adding an ACL for your local network in /etc/squid/squid.conf: acl localnet src [your address range] Tip: Append the above line under the existing acl localnet src section.

Start Squid and enable it to run at boot: $ sudo systemctl enable squid --now Open the Squid port (3128) in the firewall and reload the rules:

$ sudo firewall-cmd --add-port=3128/tcp --permanent
$ sudo firewall-cmd --reload
$ sudo firewall-cmd --list-port

Configure Jenkins Network Proxy and Domestic Plugin Source

In Jenkins, navigate to Manage Jenkins → System and set up the HTTP proxy (see image).

Configure the proxy under HTTP Proxy Configuration → Setup (see image).

Set a domestic plugin repository using Huawei’s mirror:

https://mirrors.huaweicloud.com/jenkins/updates/update-center.json

Tip: Use the above URL as the update site to speed up plugin downloads.

Open Manage Jenkins → Plugins and select the Advanced settings (see images).

Verify the configuration by checking Manage Jenkins → Plugins → Available plugins (see image).

Download and install the Role‑based Authorization Strategy plugin (see images).

Conclusion

By following these steps you can resolve network connectivity and plugin download issues in Jenkins, allowing you to focus on development and innovation. Proper tool configuration is half the battle, and Jenkins remains a powerful ally for automated build, test, and deployment pipelines.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ci/cdLinuxJenkinsSquidPlugin Repository
Linux Ops Smart Journey
Written by

Linux Ops Smart Journey

The operations journey never stops—pursuing excellence endlessly.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.