Skip to content

Instantly share code, notes, and snippets.

@ackuser
Forked from aoxu/forward.sh
Created March 4, 2021 20:23
Show Gist options
  • Save ackuser/20a96f0ddcd29611b043227ccf95fb16 to your computer and use it in GitHub Desktop.
Save ackuser/20a96f0ddcd29611b043227ccf95fb16 to your computer and use it in GitHub Desktop.
forward socks5 to http/https
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install privoxy
vim /usr/local/etc/privoxy/config
forward-socks5 / 127.0.0.1:1080 .
brew services start privoxy
export https_proxy=http://127.0.0.1:8118;export http_proxy=http://127.0.0.1:8118
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment