Linux Lite Forums

Hardware - Support => Network => Topic started by: Amila perera on February 15, 2021, 02:48:35 AM

Title: Proxy settings
Post by: Amila perera on February 15, 2021, 02:48:35 AM
How do i manually configure proxy settings here. I'm using pdanet to share my mobile unlimited internet connection.for now i'm using this net connection only in Firefox by changing its proxy settings.but it would be really helpful if i could use this network connection in the entire os. Ubuntu has a GUI for this task  and i don't know how to get this done in our xfce environment.can you guys help me?
Title: Re: Proxy settings
Post by: b930306625 on June 01, 2021, 06:36:21 PM
A proxy is basically a way to mask the origin of a connection. Basically, you drive to work but instead of taking the direct route, (A to B), you add another point in between, (A to C to B). So anyone who sees you on the way to work will see you coming from C and not from Tutuapp (https://tutuapp.uno/) 9Apps (https://9apps.ooo/) Showbox (https://showbox.kim/) A.
Title: Re: Proxy settings
Post by: WytWun on June 02, 2021, 08:33:00 AM
How do i manually configure proxy settings here.

You have to set environment variables to the appropriate values to get this to work, and add appropriate references to some other config files because there is no completely standard way to deal with this properly in Linux (or any other Unix like OS for that matter :().

Where you set these variables will affect their coverage:
- if you set them in your shell .rc file that will cover your login but not others
- if you set them in /etc/environment, that will cover all GUI logins but not ssh sessions...
etc.  Pick your poison :(, though the latter is what I use.

The variables to set include http_proxy, https_proxy and ftp_proxy (e.g. if you ever use FTP sites via a browser) and also the upper case versions for good measure.  Some code expects on a specific case variation  ::).

If apt doesn't work with the environment variables you've set (and it doesn't usually for me  ::)) you'll need to add or modify /etc/apt/apt.conf - you'll need to read some apt documentation (https://wiki.debian.org/AptConfiguration) to get the correct incantation.

Similarly I've had to add specific support to my .gitrc to have git respect a proxy... (and also to alias git:// URLs to https:// or http:// URLs as well).  There may be other applications which can only be properly configured with their native configuration files too.

Ubuntu has a GUI for this task  and i don't know how to get this done in our xfce environment.can you guys help me?
I doubt any of the distros that claim to be able to support proxies globally work for everything other than the standard browsers - there's just too little standardisation in too much code about interpreting those environment variables in my experience.  It also won't support the automatic configuration protocols that exist that can specially treat a variety of URLs with multiple proxies (e.g. this (https://en.wikipedia.org/wiki/Web_Proxy_Auto-Discovery_Protocol)).

The user experience is usually much more consistent on Windows/MacOS, but it's not perfect there either.