Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 21 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,37 @@
## proxy_configuraion
# ProxyConfiguration: A Simple Proxy Configuration Tool

[![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)
[![made with ❤ in Python](https://img.shields.io/badge/made%20with%20❤%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
<h4>Python3</h4>
To install python3 go to http://python.org

- Python 3.6+

To install Python 3, visit [python.org](https://www.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.
This script removes the hassle of configuring a proxy manually by supporting system-wide proxy configuration. It is kept
as simple as possible and does not use any additional libraries other than those that come with Python 3.

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.
Currently tested on Ubuntu 14.04 LTS, 16.04 LTS, 18.04 LTS, 22.04 LTS.

## Run
There are four options:

```
chmod +x proxy.py
sudo ./proxy.py
```
1. **Set proxy:** Takes input from the user and modifies the required files.
2. **Remove proxy:** Removes any proxy settings present in the files.
3. **View Proxy:** Displays the current proxy settings, if any.
4. **Restore default:** Restores the state before running this script for the first time.

## Support
Currently it modifies the following files
1)/etc/apt/apt.conf
2)/etc/environment
3)/etc/bash.bashrc
## Example run

```sh
chmod +x proxy.py
```

## contribution
contributors are more than welcome to contribute to this project.
``` sh
sudo ./proxy.py
```
Loading