Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nityanandagohain/proxy_configuration
System wide proxy configuration in a single script with options to add, remove proxy and restore system default proxy configuration
https://github.com/nityanandagohain/proxy_configuration
linux proxy proxy-configuration python scripts ubuntu
Last synced: 12 days ago
JSON representation
System wide proxy configuration in a single script with options to add, remove proxy and restore system default proxy configuration
- Host: GitHub
- URL: https://github.com/nityanandagohain/proxy_configuration
- Owner: nityanandagohain
- Created: 2017-11-27T03:38:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T16:00:49.000Z (5 months ago)
- Last Synced: 2024-10-23T10:00:29.187Z (19 days ago)
- Topics: linux, proxy, proxy-configuration, python, scripts, ubuntu
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 93
- Watchers: 3
- Forks: 37
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## proxy_configuraion
[![Built with ❤](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com/#)
[![made with &hearts in Python](https://img.shields.io/badge/made%20with%20%E2%9D%A4%20in-Python-red.svg)](http://shields.io/#your-badge)
[![works on Linux](https://img.shields.io/badge/works%20on-Linux-orange.svg)](http://shields.io/#your-badge)## Screenshot
![screenshot](/img/scrshot.png)## Requirements
Python3
To install python3 go to http://python.org## About
This is a script which configures removes the hassle of configuring proxy manually by supporting system wide proxy_configuration.
It is kept as simple as possible . No extra library other than the one that comes with python3 is used.Currently tested on Ubuntu 14.04, 16.04, 18.04.
There are four options
1)Set proxy : Takes input from the user and modifies the required files.
2)Remove proxy : Remove any proxy settings if present in the files.
3)View Proxy : Displays the current proxy settings if there are any.
4)Restore default : Restores to the state before running this script for the first time.## Run
```
chmod +x proxy.py
sudo ./proxy.py
```## Support
Currently it modifies the following files
1)/etc/apt/apt.conf
2)/etc/environment
3)/etc/bash.bashrc## contribution
contributors are more than welcome to contribute to this project.