Linux Tips

How To Configure System-wide Proxy Settings Simply And Rapidly

Right now, we will probably be discussing a easy, but helpful command line utility named “ProxyMan”. Because the title says, it lets you apply and handle proxy settings on our system simply and rapidly. Utilizing ProxyMan, we will set or unset proxy settings robotically at a number of factors, with out having to configure them manually one after the other. It additionally means that you can save the settings for later use. In a nutshell, ProxyMan simplifies the duty of configuring system-wide proxy settings with a single command. It’s free, open supply utility written in Bash and normal POSIX instruments, no dependency required. ProxyMan will be useful in the event you’re behind a proxy server and also you wish to apply the proxy settings system-wide in a single go.

Putting in ProxyMan

Obtain the newest ProxyMan model from the releases web page. It’s obtainable as zip and tar file. I’m going to obtain zip file.

$ wget https://github.com/himanshub16/ProxyMan/archive/v3.1.1.zip

Extract the downloaded zip file:

$ unzip v3.1.1.zip

The above command will extract the contents in a folder named “ProxyMan-Three.1.1” in your present working listing. Cd to that folder and set up ProxyMan as proven beneath:

$ cd ProxyMan-Three.1.1/
$ ./set up

In the event you see “Put in efficiently” message as output, congratulations! ProxyMan has been put in.

Allow us to go forward and see the right way to configure proxy settings.

Configure System-wide Proxy Settings

ProxyMan utilization is fairly easy and straight ahead. Like I already mentioned, It permits us to set/unset proxy settings, listing present proxy settings, listing obtainable configs, save settings in a profile and cargo profile later. Proxyman at present manages proxy settings for GNOME gsettings, bash, apt, dnf, git, npm and Dropbox.

Set proxy settings

To set proxy settings system-wide, merely run:

$ proxyman set

You’ll requested to reply a collection of straightforward questions similar to,

HTTP Proxy host IP deal with,
HTTP port,
Use username/password authentication,
Use identical settings for HTTPS and FTP,
Save profile for later use,
Lastly, select the listing of targets to use the proxy settings. You may select all of sudden or separate a number of selections with house.

Pattern output for the above command:

Enter particulars to set proxy
HTTP Proxy Host 192.168.225.22
HTTP Proxy Port 8080
Use auth – userid/password (y/n)? n
Use identical for HTTPS and FTP (y/n)? y
No Proxy (default localhost,127.zero.zero.1,192.168.1.1,::1,*.native)
Save profile for later use (y/n)? y
Enter profile title : proxy1
Saved to /house/sk/.config/proxyman/proxy1.

Choose targets to change
| 1 | All of them … Do not trouble me
| 2 | Terminal / bash / zsh (present consumer)
| Three | /and so on/atmosphere
| four | apt/dnf (Package deal supervisor)
| 5 | Desktop settings (GNOME/Ubuntu)
| 6 | npm & yarn
| 7 | Dropbox
| eight | Git
| 9 | Docker

Separate a number of selections with house
? 1
Setting proxy…
To activate in present terminal window
run supply ~/.bashrc
[sudo] password for sk:
Completed

Record proxy settings

To view the present proxy settings, run:

$ proxyman listing

Pattern output:

Hmm… itemizing all of it

Shell proxy settings : /house/sk/.bashrc
export http_proxy=”http://192.168.225.22:8080/”
export ftp_proxy=”ftp://192.168.225.22:8080/”
export rsync_proxy=”rsync://192.168.225.22:8080/”
export no_proxy=”localhost,127.zero.zero.1,192.168.1.1,::1,*.native”
export HTTP_PROXY=”http://192.168.225.22:8080/”
export FTP_PROXY=”ftp://192.168.225.22:8080/”
export RSYNC_PROXY=”rsync://192.168.225.22:8080/”
export NO_PROXY=”localhost,127.zero.zero.1,192.168.1.1,::1,*.native”
export https_proxy=”/”
export HTTPS_PROXY=”/”

git proxy settings :
http http://192.168.225.22:8080/
https https://192.168.225.22:8080/

APT proxy settings :
Three
Completed

Unset proxy settings

To unset proxy settings, the command can be:

$ proxyman unset

You may unset proxy settings for all targets without delay by coming into quantity 1 or enter any given quantity to unset proxy settings for the respective goal.

Choose targets to change
| 1 | All of them … Do not trouble me
| 2 | Terminal / bash / zsh (present consumer)
| Three | /and so on/atmosphere
| four | apt/dnf (Package deal supervisor)
| 5 | Desktop settings (GNOME/Ubuntu)
| 6 | npm & yarn
| 7 | Dropbox
| eight | Git
| 9 | Docker

Separate a number of selections with house
? 1
Unset all proxy settings
To activate in present terminal window
run supply ~/.bashrc
Completed

To use the modifications, merely run:

$ supply ~/.bashrc

On ZSH, use this command as a substitute:

$ supply ~/.zshrc

To confirm if the proxy settings have been eliminated, merely run “proxyman listing” command:

$ proxyman listing
Hmm… itemizing all of it

Shell proxy settings : /house/sk/.bashrc
None

git proxy settings :
http
https

APT proxy settings :
None
Completed

As you may see, there is no such thing as a proxy settings for all targets.

View listing of configs (profiles)

Bear in mind we saved proxy settings as a profile within the “Set proxy settings” part? You may view the listing of obtainable profiles with command:

$ proxyman configs

Pattern output:

Right here can be found configs!
proxy1
Completed

As you may see, we’ve got just one profile i.e proxy1.

Load profiles

The profiles will probably be obtainable till you delete them completely, so you may load a profile (E.g proxy1) at any time utilizing command:

$ proxyman load proxy1

This command will listing the proxy settings for proxy1 profile. You may apply these settings to all or a number of targets by coming into the respective quantity with space-separated.

Loading profile : proxy1
HTTP > 192.168.225.22 8080
HTTPS > 192.168.225.22 8080
FTP > 192.168.225.22 8080
no_proxy > localhost,127.zero.zero.1,192.168.1.1,::1,*.native
Use auth > n
Use identical > y
Config >
Targets >
Choose targets to change
| 1 | All of them … Do not trouble me
| 2 | Terminal / bash / zsh (present consumer)
| Three | /and so on/atmosphere
| four | apt/dnf (Package deal supervisor)
| 5 | Desktop settings (GNOME/Ubuntu)
| 6 | npm & yarn
| 7 | Dropbox
| eight | Git
| 9 | Docker

Separate a number of selections with house
? 1
Setting proxy…
To activate in present terminal window
run supply ~/.bashrc
Completed

Lastly, activate the modifications utilizing command:

$ supply ~/.bashrc

For ZSH:

$ supply ~/.zshrc

Deleting profiles

To delete a profile, run:

$ proxyman delete proxy1

Output:

Deleting profile : proxy1
Completed

To show assist, run:

$ proxyman assist

Associated learn:

Conclusion

Earlier than I got here to find out about Proxyman, I used to use proxy settings manually at a number of locations, for instance bundle supervisor, internet browser and so on. Not anymore! ProxyMan did this job robotically in couple seconds.

And, that’s all for now. Hope this was helpful. Extra good stuffs to return. Keep tuned.

Cheers!

Useful resource:

Thanks for stopping by!

Assist us that will help you:

Have a Good day!!

Source link

Related Articles

Back to top button