How to Configure Network Proxy Settings for macOS

Open “Terminal” app

cd ~
nano .bash_profile

paste code below and save:
# proxy list, 1080 is the default port, check it through shadowsocks app.
alias proxy='export all_proxy=socks5://127.0.0.1:1080'
alias unproxy='unset all_proxy'

source .bash_profile

Create a new Terminal window and input:

proxy
# and access anything through vpn now!
...
unproxy
# stop vpn