• Eng
  • Rus
  • Ukr

Proxy settings for OS Linux

Linux is a popular operating system that many users choose. But, like other systems, it is not sufficiently protected from leaks or hacks. That is why it is worth setting up a proxy server for Linux. A proxy will hide your IP address and location, provide anonymity on the network and help you bypass any blocking and restrictions.

Proxy configuration in Linux will be done through the Terminal application. We will show how to set a proxy server for all programs and browsers on the operating system and how to do it for a single application.

How to set up a proxy on Linux for all programs:

  1. Find and open Terminal on the sidebar.
  2. 1:1.png

  3. Type in the command: $sudo nano /etc/environment.
  4. 2:1.png

  5. Enter the lines with the proxy server data (depending on the type of your proxy). You can enter several proxies of different types at once:
  6. 3:1.png

  7. Close the Terminal and reboot your device so that the proxy starts working.

How to set up a proxy on Linux for a specific program:

  1. Open the Terminal application again.
  2. 1:2.png

  3. Enter the command with the name of the program for which you want to configure the proxy: $sudo nano /etc/program_name/default (we will configure the proxy for the Mozilla Firefox browser).
  4. 2:2.png

  5. Enter a line with your proxy data in the same way as you did above:
  6. MOZILLA_FIREFOX="-proxy-server="[username]:[password]@[IP-address]:[port-number]"


  7. Close the Terminal and restart your computer. Done!

How to disable proxy in Linux

  1. To disable the proxy, you need to open the Terminal again and enter the following values:
    • unset http_proxy
    • unset https_proxy
    • unset socks_proxy
    • unset ftp_proxy
  2. Close the window and restart your device.

Now you know how to set up a proxy for OS Linux. To bypass all blockings and restrictions, choose high-quality private proxies. It will also protect your data and device, and you will remain anonymous online.