Created
May 16, 2021 10:49
-
-
Save rafamdr/288393283e8a20eaab9776997d1fc41d to your computer and use it in GitHub Desktop.
Setting proxy for entire system (Centos7/Redhat7)
This file contains 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
# set proxy config via /etc/profile.d - should apply for all users | |
# You can edit /etc/profile or add a script in /etc/profile.d directory which will be executed /etc/profile script | |
# After that, you can test executing "source /etc/profile" | |
PROXY_URL="http://10.102.45.9:8080/" | |
export http_proxy="$PROXY_URL" | |
export https_proxy="$PROXY_URL" | |
export ftp_proxy="$PROXY_URL" | |
export no_proxy="127.0.0.1,localhost" | |
# For curl | |
export HTTP_PROXY="$PROXY_URL" | |
export HTTPS_PROXY="$PROXY_URL" | |
export FTP_PROXY="$PROXY_URL" | |
export NO_PROXY="127.0.0.1,localhost" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment