6 min
Alex Reed
Alex Reed
How to Configure a Proxy on Linux

Linux has long been popular with experienced users because it is open-source. Users with the necessary knowledge can modify the software on their own computers and adapt the code to their needs. The ability to change or extend operating system functionality makes Linux suitable for many specialized tasks. Linux distributions are also generally free to use. To improve privacy and security online, you can configure a proxy server on Linux yourself or ask an experienced ProxyWhite specialist for assistance.

Is Using a Proxy on Linux Secure?

Security depends on the reliability of the proxy provider and whether the connection details are entered correctly. A proxy can help hide your real IP address and protect network traffic from casual observation. Common reasons to configure a proxy on Linux include:

  • accessing online resources that are subject to regional restrictions or ISP blocking;
  • improving security by filtering malicious traffic and adding another layer of protection against DDoS attacks;
  • optimizing network activity—for example, companies may use a proxy server on Linux to cache web pages and resources, speed up loading, improve workflows, and reduce the load on network resources;
  • collecting data and scraping websites for SEO and marketing research, including market and competitor analysis;
  • managing multiple social media accounts or sending email campaigns from different IP addresses;
  • developing and testing software and web applications—for example, developers can configure mobile proxies on Linux to view a page or application from different locations, check feature availability, and identify location-related bugs;
  • protecting data when using public networks, especially public Wi-Fi.

These are some of the most common situations in which configuring a proxy on Linux can be useful.

How to Configure a Proxy Server on Linux

As with other operating systems, you can configure a proxy by entering the required settings in the terminal or through the graphical interface. Kali Linux provides a useful example. To configure a proxy:

  1. Click the arrow in the upper-right corner of the desktop.
  2. Open Manual Proxy.
  3. Select Network Settings.
  4. In the left-hand menu, select Network Proxy.
  5. Set the method to Manual.
  6. Enter the proxy server’s IP address and port in the field for the appropriate proxy type.
  7. Save the changes and close Settings.

If you use a private proxy, an authentication window may appear. Enter the username and password, then click Log In.

Astra Linux Uses a Similar Setup Process:

  1. Click Start in the lower-left corner of the desktop.
  2. Open Control Panel.
  3. Select Network.
  4. Open the Proxy tab.
  5. Select Use manually specified proxy settings.
  6. Choose the proxy type, then enter the IP address and port.
  7. Select Use this proxy server for all protocols.
  8. Optionally, enter the addresses of network resources that should bypass the proxy.
  9. Click Apply.

If the proxy requires authentication, enter the username and password in the dialog box and click Log In. Configuring a proxy server in Astra Linux is straightforward when the steps are followed in sequence. For a home computer, most users can complete the process themselves. For a local network with several computers or an organization-wide deployment, however, it may be safer to work with a specialist. The goal is to ensure that all requests are routed only through a trusted, properly configured proxy.

Configuring a Proxy in ALT Linux

You can configure a proxy server in ALT Linux through either the graphical interface or the terminal. Both methods are described below.

Using the Graphical Interface

  1. Click Menu in the lower-left corner of the desktop.
  2. Open Control Center.
  3. Go to Network.
  4. Select the Proxytab.
  5. Select Use manually specified proxy settings.
  6. Enter the following information in the appropriate fields:
    • Proxy type, such as HTTP, HTTPS, or SOCKS5.
    • Proxy server IP address and port.
  7. Optional: If authentication is required, enter the username and password.
  8. Optional: Add websites that should bypass the proxy to the exceptions field.
  9. Click Apply and close the window.

Using the Terminal

If you prefer the terminal, you can configure the proxy manually by editing a configuration file.

System-Wide Proxy Configuration
  1. Open the terminal (Ctrl + Alt + T).
  2. Run the following command to edit the configuration file:

sudo nano /etc/environment

  1. Add the following lines to the end of the file, replacing IP and PORT with your proxy details:

http_proxy="http://IP:PORT/"

https_proxy="https://IP:PORT/"

ftp_proxy="ftp://IP:PORT/"

socks_proxy="socks5://IP:PORT/"

  1. If the proxy requires authentication, use this format:

http_proxy="http://логин:пароль@IP:PORT/"

  1. Save the changes (Ctrl + X, then Y, then Enter).
  1. Apply the changes with the following command:

source /etc/environment

Proxy Configuration for a Specific User
  1. Open the shell configuration file:

nano ~/.bashrc

  1. Add the following lines:

export http_proxy="http://IP:PORT/"

export https_proxy="https://IP:PORT/"

export ftp_proxy="ftp://IP:PORT/"

export socks_proxy="socks5://IP:PORT/"

  1. Save the changes (Ctrl + X, then Y, then Enter).
  2. Apply the settings:

source ~/.bashrc

Configuring a Proxy in a Browser, Such as Firefox

To configure a proxy only for the browser:

  1. Open Firefox.
  2. Go to Settings → Network Settings → Settings.
  1. Select Manual proxy configuration.
  1. Enter the IP address and port.
  1. Save the settings.

After you complete these steps, the proxy in ALT Linux will use the specified settings. For a corporate network or a more complex configuration, Squid or another proxy management tool may provide greater flexibility.

Where Linux Proxies Are Used

Each proxy type has its own features and benefits. Before choosing a proxy for Linux, consider your requirements, workload, and how the proxy will be used. This will help you select a solution that is both effective and cost-efficient.

Common use cases include:

  • corporate networks, where proxy servers control outbound traffic, restrict employee access to selected resources, and help protect internal information;
  • personal use, including privacy protection and more anonymous browsing;
  • cybersecurity operations, including traffic analysis and stronger cyberthreat prevention;
  • web application development, including testing, debugging, and access to regional content.

These benefits apply to proxies supplied by reputable, trusted providers. Public proxy servers and credentials from unverified sources do not provide the same level of security or reliability.

Create Your Own Secure Network

Try high-quality private datacenter proxies for your projects
Buy Proxies Request a Consultation