Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Proxy automation script! #61

Open
akshaykhoje opened this issue Oct 1, 2022 · 1 comment
Open

Feature: Proxy automation script! #61

akshaykhoje opened this issue Oct 1, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@akshaykhoje
Copy link

akshaykhoje commented Oct 1, 2022

Yes, my shell script is an automation script for system-wide proxy setup on linux installed machines.

I have been wandering why we at our college are not able to access the internet from within the terminal when behind a proxy server. Henceforth we had to switch between personal wifi and the college proxy every now and then.

I'd like this issue be solved by writing a few simple command from the terminal to toggle the proxy on and off.

The current way of tackling this problem is to manually comment out all the config files for whom one sets the proxy. I would like this to be automated with as minimum efforts as possible.

I HAVE THE SOLUTION DONE MYSELF!
A month ago I wrote this shell script which does the above job by just a couple commands.
To turn the proxy on enter the commands:
myproxy on
source /etc/profile.d/proxy.sh

To turn off:
myproxy off
source /etc/profile.d/unset_proxy.sh

You can check the script here

PLEASE ASSIGN ME THIS FEATURE!
I SUPPOSE THIS WILL ADD VALUE TO THE BOOK AND MIGHT SERVE A REAL LIFE PURPOSE FOR LEARNERS!

THANK YOU😇

@akshaykhoje akshaykhoje added the enhancement New feature or request label Oct 1, 2022
@bobbyiliev
Copy link
Owner

Hi there, sounds good! Feel free to submit a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants