418

How to set up a proxy server on Linux

On Linux, a proxy server can be connected by entering new settings into the terminal. Below we will analyze in detail what data you need to enter into the command line to configure the proxy properly. We will take Kali Linux as a basis, but the principle of setting up an intermediary server will be identical on all versions of this operating system.

Configuring a Linux proxy: step by step instructions

To connect a proxy server on this operating system, you need to follow these steps:

  1. Open a terminal.
  2. Enter the phrase "sudo apt-get install git gcc" (without quotes) there and press "Enter". In the future, press the "Enter" key after entering each new command.
  3. Write " sudo apt-get remove proxychains " to remove the old data.

    1.png

  4. Enter “ git clone https://github.com/rof10r/proxychains-ng.git ” to copy the parameters you want.

    2.png

  5. Change to the copied folder by entering: " cd proxychains-ng ".

    3.png

  6. 6. Add "./configure --prefix = / usr --sysconfdir = / etc ".

    4.png

  7. Enter the command in the console « Make ».

    5.png

  8. Then: « sudo make install ».

    6.png

  9. To install a proxy on Linux, you will need to wait a while until the required data is loaded.
  10. After the installation is complete, enter « sudo make install-config ».

    7.png

  11. Write « cd » in.

    8.png

  12. We have finished with the installation, now we need to configure the Linux proxy server. To do this, let's start editing the file with proxy chain configurations in notepad. Enter «leafpad /etc/proxychains.conf ».

    9.png

  13. After opening the notebook, scroll down to the "ProxyList" section. Put the "#" symbol before the bottom line. It shouldn't be there by default.

    11.png

  14. Now you need a proxy server.

When choosing a proxy, try to avoid transparent servers. They will not provide you with anonymity when surfing the Internet, as they do not hide your real IP address.

If you have already selected proxy servers, then all that remains is to add them to the database. To do this, write the following phrase in an open notebook:

" Http 223.16.229.241 8080 ".

The first number is the IP of your proxy, the second is its port. Make skips of such a plan by pressing the "Tab" button.

12.png

  1. Close the file and save the changes.
  2. Now you can run any required application that has access to the Internet through a proxy server. To do this, you need to enter the phrase " proxychains4 " before the command to call the program in the console.

For example, to launch the Firefox browser through a proxy on your computer, you need to enter the following phrase: " proxychains4 firefox ".

13.png

You can find out the current IP address of the proxy server in use by entering the phrase:

" Proxychains4 wget -qO- eth0.me ".

14.png

The setup is complete! Now you can use a proxy server on Linux to increase anonymity, protect against various types of network attacks, and solve many other problems.