Skip to content

Instantly share code, notes, and snippets.

@orivee
Created July 19, 2018 05:26
Show Gist options
  • Save orivee/3ed611bff6148a5ad6624ff763cbcdc0 to your computer and use it in GitHub Desktop.
Save orivee/3ed611bff6148a5ad6624ff763cbcdc0 to your computer and use it in GitHub Desktop.
How to convert SOCKS proxy (e.g Shadowsocks) to HTTP proxy

How to convert SOCKS proxy (e.g Shadowsocks) to HTTP proxy

Step 1

Install Privoxy

brew install privoxy

Step 2

Update Privoxy configuration

...

listen-address 127.0.0.1:8118
forward-socks5 / 127.0.0.1 .

...

Step 3

Start the Privoxy service

brew services start privoxy

Step 4

Export HTTP_PROXY/HTTPS_PROXY

export HTTP_PROXY=http://127.0.0.1:8118
export HTTPS_PROXY=http://127.0.0.1:8118
export NO_PROXY=10.0.0.0/8,192.168.0.0/16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment