| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ProxyMan is a shell script to manage system-wide proxy settings on Linux systems. It supports both Debian/Ubuntu-based (using apt) and RHEL/CentOS/Fedora-based systems (using dnf or yum). In addition, it configures proxies for wget, Docker (both system daemon and per-user Docker settings), and system-wide environment variables like http_proxy, https_proxy, and no_proxy.
Package Manager Support:
Detects your system’s package manager (apt, dnf, or yum) and configures the proxy settings accordingly.
System-Wide Environment Variables:
Configures /etc/environment to set http_proxy, https_proxy, no_proxy and their uppercase variants globally.
Wget Proxy Configuration:
Updates /etc/wgetrc so wget commands use the configured proxy.
Docker Proxy Configuration:
Backup and Restore Mechanism:
Interactive Mode:
Shell Integration:
Safe and User-Friendly:
Run as root (via sudo), since system-wide configuration files are modified.
If you prefer a non-interactive setup, ensure /etc/proxy.conf exists with:
HTTP_PROXY=http://proxy.example.com:8080
HTTPS_PROXY=http://proxy.example.com:8080
NO_PROXY=localhost,127.0.0.1,::1Adjust these values to match your actual proxy setup. If /etc/proxy.conf is missing, ProxyMan will prompt you interactively to enter these values when you run set.
sudo cp proxyman.sh /usr/local/bin/proxyman
sudo chmod +x /usr/local/bin/proxymanRun all commands with sudo:
sudo proxyman setThis configures all system-wide files, Docker, and per-user Docker config. If /etc/proxy.conf is missing, it will prompt you interactively. After setting, ProxyMan will print instructions on how to apply these settings to your current shell (using eval "$(sudo proxyman export)").
sudo proxyman unsetRestores original configurations from backups and removes proxy settings. After unsetting, it will print instructions on how to remove the settings from your current shell (using eval "$(sudo proxyman unexport)").
sudo proxyman listShows the current state of all relevant files.
Use the following command to print export statements for http_proxy, https_proxy, no_proxy, and their uppercase equivalents:
sudo proxyman exportTo apply these proxy settings to your current shell without reopening it, use:
eval "$(sudo proxyman export)"To print unset statements for removing proxy variables from your current shell:
sudo proxyman unexportTo apply these unset statements, use:
eval "$(sudo proxyman unexport)"For help and usage information, use:
sudo proxyman -hsudo proxyman set
eval "$(sudo proxyman export)"sudo proxyman unset
eval "$(sudo proxyman unexport)"Alternatively, you can reopen your terminal session after setting or unsetting proxies to apply or remove the proxy environment.
The script attempts to detect your system's package manager:
Docker Integration:
Backup Behavior:
| Back | FazBrowse Home | New Git URL |