Last active
April 30, 2023 19:11
-
-
Save pagpires/179c89b4a73548b3e88b79d49dde93cb to your computer and use it in GitHub Desktop.
terminal proxy
This file contains hidden or 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
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