https://github.com/getlantern/proxysetup
proxysetup is a command-line utility that allows managing Macintosh proxy settings via the networksetup program without having to sudo or supply one's password
https://github.com/getlantern/proxysetup
Last synced: 8 months ago
JSON representation
proxysetup is a command-line utility that allows managing Macintosh proxy settings via the networksetup program without having to sudo or supply one's password
- Host: GitHub
- URL: https://github.com/getlantern/proxysetup
- Owner: getlantern
- Created: 2014-02-10T14:02:20.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T17:41:02.000Z (over 8 years ago)
- Last Synced: 2024-04-15T03:25:47.932Z (about 2 years ago)
- Language: C
- Size: 2.93 KB
- Stars: 7
- Watchers: 14
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Overview
--------
proxysetup runs the /usr/sbin/networksetup utility using whatever parameters
were passed to the program. This is useful if you want to be able to run
networksetup and make network changes without having to sudo or supply your
password interactively.
To do so, make root own proxysetup and set the setuid bit to allow anyone to execute
it as root.
```
chown root:wheel proxysetup
chmod 4755 proxysetup
```
Since proxysetup is intended primarily for managing proxy settings, it
only allows the following networksetup commands to be run:
```
-listallnetworkservices
-getwebproxy
-setwebproxy
-setwebproxystate
-getsecurewebproxy
-setsecurewebproxy
-setsecurewebproxystate
-getautoproxyurl
-setautoproxyurl
-setautoproxystate
-getproxybypassdomains
-setproxybypassdomains
-help
-printcommands
```
Building
--------
```
git clone https://github.com/oxtoacart/proxysetup.git
make
```