Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uggla/proxyzap
A simple script/service to change Gnome3 proxy settings based on connected subnet
https://github.com/uggla/proxyzap
Last synced: 25 days ago
JSON representation
A simple script/service to change Gnome3 proxy settings based on connected subnet
- Host: GitHub
- URL: https://github.com/uggla/proxyzap
- Owner: uggla
- License: gpl-3.0
- Created: 2017-04-06T11:20:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-01T23:17:57.000Z (about 6 years ago)
- Last Synced: 2024-10-14T09:11:06.050Z (2 months ago)
- Language: Python
- Homepage:
- Size: 119 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# proxyzap
A simple script/service to change Gnome3 and dnf proxy settings based on connected subnet![Screenshot1](screenshots/screenshot1.png)
# Installation
* Clone the repository
```
git clone https://github.com/uggla/proxyzap.git
```* Create the systemd service configuation directory.
```
mkdir -p ~/.config/systemd/user
```* Run the install.sh script. This script will create a systemd service file and link it with your systemd user settings.
* If you want proxyzap to control your dnf proxy setting, run it with:
```
sudo ./install.sh --dnfproxy
```
**NOTE: You must run the script with root privileges. It will change group ownership of the dnf configuration file and will allow mode write access for the current user.**# Service management
* Status
```
systemctl --user status proxyzap.service
```* Start
```
systemctl --user start proxyzap.service
```* Stop
```
systemctl --user stop proxyzap.service
```# Configuration file
```ini
[proxyzap]
SUBGW = "192.168.0.254:proxy_profile"
ENABLEPROXYDNF = True
DEBUG = True[proxy_profile]
PROXY = "myproxy.mydomain.local"
PROXYPORT = "8080"
PROXYIGNORE = localhost, 127.0.0.0/8, ::1
```* SUBGW: Is the gateway off the network that requires proxy settings.
* PROXY: Proxy host name.
* PROXYPORT: Proxy port used.
* PROXYIGNORE: Hosts or subnets that do not need a proxy to connect to.
* ENABLEPROXYDNF: Enable dnf proxy control.
* DEBUG = True|False, set the log verbosity.# Limitations
Currently it can manage only one proxy.