Proxy Server Configuration

04 Dec
Configuring a proxy on Linux

For the first time, PC users got acquainted with the Linux operating system in the early noughties. It provoked great interest, because the developers talked about the maximum security of the user on the network. Soon the adware found a “bypass” of protection. In this regard, people began to actively install proxy servers on their computers. A proxy server is an intermediary between the network and the device. With its help, the user does not risk personal data and gets access to limited resources. In this article, we will take a closer look at setting up proxies on Linux.

Proxy installation instructions

Proxyline offers to buy a high-quality proxy. On our website you will find software for a gadget with any OS, including Linux. A proxy server provides users with anonymity, efficient operation, and security. First, you need to adjust the Linux settings. First of all, you need to manually enter the data for the proxy – the so-called ftp/https/http variables. You will need the commands (X – ftp/https/http):
  • Export X_proxy;
  • x://proxy-server:port.
When using a single proxy for multiple variables, pay attention to a simpler command – unset https_proxy/unset http_proxy/unset ftp_proxy.

Correction of data for proxies in individual cases

In some cases, installing a server requires additional steps.
  • To install a proxy with a password, just enter the command X//user:pass@proxy-server:port (X – ftp/https/http).
  • Set up a personal address for specific resources or direct work without intermediary. In this case, you need to create a list of servers for direct communication and enter no_proxy. This step will allow you to “crawl” the specified resources.
  • Replacing the ftp/https/http variables with configuration file symbols. To avoid this, you need to run the configuration settings and enter the usual proxy address, login, password. Next time, the program will work correctly.

Server Testing

There are several ways to check the operability:
  • enter the command $ env | grep -i proxy (to test variables)
  • Find the external IP address in the string or open a ping.
  • check the speed with the time command;
  • Test the download quality with $wget —output-document=\.

Undo Settings

It is necessary to be able not only to activate, but also to disable proxies in the OS. For this purpose, the unset command is created. To activate the changes, you need to enter Unset rsync (http,ftp,http)_proxy/ (variables from which the required option is selected are indicated in brackets). There is a simplified way of setting up, in which unset {http,https,ftp}_proxy is entered in the line. Installing a proxy does not require much time and much effort. If the system requires regular connection and shutdown of the personal IP, it is best to create special bash functions. This will help you configure the software with the click of a single command. In bash scripts, you need to enter setproxy ({export {X}_proxy), where X is the required variable. To create the unsetproxy function, replace “export” with “unset”. After these changes, you need to reboot the device to start using the updated version.