Eng
  • Eng
  • Rus
  • Ukr

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.

Setting up a Linux proxy: step-by-step instructions

To set up a proxy server on Linux, you need to follow these steps:

  1. Open a terminal.
  2. Install the required packages:
    sudo apt-get install git gcc
    
  3. Remove any old version of proxychains:
    sudo apt-get remove proxychains
    
  4. Clone the proxychains-ng repository:
    git clone https://github.com/rofl0r/proxychains-ng.git
    
  5. Switch to the downloaded folder:
    cd proxychains-ng
    
  6. Configure the build:
    ./configure --prefix=/usr --sysconfdir=/etc
    
  7. Compile the program:
    make
    
  8. Install it:
    sudo make install
    
  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
    
  11. Write:
    cd
    
  12. We have finished with the installation, now we need to configure the Linux proxy server. To do this, start editing the file with proxy chain configurations in notepad:
    leafpad /etc/proxychains.conf
    
  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

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

proxychains4 wget -qO- eth0.me

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.