Skip to content

Instantly share code, notes, and snippets.

@RiFi2k
Last active March 4, 2021 16:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RiFi2k/30e3b16e4476428369476ff0e55311c6 to your computer and use it in GitHub Desktop.
Save RiFi2k/30e3b16e4476428369476ff0e55311c6 to your computer and use it in GitHub Desktop.
Instructions for setting up localhost proxy for most services on Fedora

Fedora 127.0.0.1 Proxy

DNF

sudo nano /etc/dnf/dnf.conf

Add proxy=socks5://127.0.0.1:8123

GIT

git config --global http.proxy "http://127.0.0.1:8123/"

NPM

npm config set proxy "http://127.0.0.1:8123/"

ZSH

export http_proxy=http://127.0.0.1:8123
export HTTP_PROXY=http://127.0.0.1:8123
export https_proxy=http://127.0.0.1:8123
export HTTPS_PROXY=http://127.0.0.1:8123
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com,*.local"
export NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com,*.local"
export all_proxy=socks5://127.0.0.1:8123
export ALL_PROXY=socks5://127.0.0.1:8123

SUDO

sudo visudo

Add Defaults env_keep += "http_proxy HTTP_PROXY no_proxy NO_PROXY"

GNOME

gsettings set org.gnome.system.proxy mode manual
gsettings set org.gnome.system.proxy mode none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment