Ubuntu set up Proxy

nano /etc/environment
 export http_proxy=
 export https_proxy=
 export no_proxy=", localhost" 

save and go.

How to Configure Network Proxy Settings for macOS

Open “Terminal” app

nano ~/.bash_profile or ~/.zshrc (if you're using zsh shell)

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

source .bash_profile

Create a new Terminal window and input:

# and access anything through vpn now!
# stop vpn