Principle
The script usesnetworksetup
change proxy for you.Installation
- Copy
proxyit
to/usr/local/bin
- Give
networksetup
superuser permissions to prevent it keeping asking password
sudo chmod +s /usr/sbin/networksetup
Configs
Example:[linode]
type=socks
host=192.168.1.1
port = 1018
[buyvm]
type=http
host=172.12.222.123
port=8101
[mal]
type=pac
url=http://10.0.1.44/x.pac
~/.proxyit
Usage
$ proxyit list # list all available proxy settings
linode buyvm mal
$ proxyit set linode # use linode proxy setting
$ proxyit unset # unset all proxy settings
from https://github.com/humiaozuzu/proxyit