Skip to content

Instantly share code, notes, and snippets.

@pagpires
Last active April 30, 2023 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pagpires/179c89b4a73548b3e88b79d49dde93cb to your computer and use it in GitHub Desktop.
Save pagpires/179c89b4a73548b3e88b79d49dde93cb to your computer and use it in GitHub Desktop.
terminal proxy
client_up(){
gost -L socks5://:1080 -F 'https://USER:PASS@DOMAIN:PORT'
}
SOCKS="socks5://127.0.0.1:1080"
alias proxy_on="export http_proxy=${SOCKS} https_proxy=${SOCKS} all_proxy=${SOCKS}"
alias proxy_off='unset all_proxy http_proxy https_proxy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment