[go: up one dir, main page]

0% found this document useful (0 votes)
27 views8 pages

Proxy On Linux

Probably

Uploaded by

Abdullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views8 pages

Proxy On Linux

Probably

Uploaded by

Abdullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

FIGURE-1: Updating and Upgrading Linux.

To setup proxychains you need to setup the tor service in your machine,
most of the time the service is preinstalled. To check if there is tor service
available or not just use this command.

Command: service tor status

FIGURE-2: Tor service status.

If you get any error after using “service tor status” command, then it means
tor service is not available in your operating system, to install tor service use
the following command.

Command: sudo apt-get install


FIGURE-3: Installing Tor service.

Since I have already installed tor service, you may have to modify some
settings to run proxychains smoothly. If you face any error during this
process, please check the steps provided later in this article. Once you have
installed tor service, the next step is to install configure proxychains. You
can use this command to install that.

Open in app Sign up Sign in


Command: sudo apt-get install proxychains
Search Write

FIGURE-4: Installing proxychains.

You have the option to select any editor that you like. For this example, we
are using nano, but there are other alternatives such as vim, gedit, leafpad,
or sublime.

Command: nano /etc/proxychains.conf

FIGURE-5: Using nano text editor.


5

FIGURE-6: Using nano for editing.

The configuration file has “#” symbols, which mark comments in bash
language. To edit the file, you can use the arrow keys to navigate and make
these changes:

1- Remove the “#” symbol from the line that says `dynamic_chain`.
2- Add the “#” symbol to the lines that say `strict_chain` and
`random_chain`.
3- Remove the “#” symbol from the line that says `proxy_dns`.
4- Append the line `socks5 127.0.0.1 9050` to the proxy list.
FIGURE-7: nano Editor

FIGURE-8: Editing socks5 using nano.

After saving the `proxychains.conf` configuration file, you need to open the
`proxychains4.conf` file, which is located in the /etc directory. You can use
this command to do so:

Command: nano /etc/proxychains4.conf

You have the option to select any editor that you like. For this example, we
are using nano, but there are other alternatives such as vim, gedit, leafpad,
or sublime.

FIGURE-9: Editing proxychains4.conf file.


FIGURE-10: Using nano for editing.

The configuration file has “#” symbols, which mark comments in bash
language. To edit the file, you can use the arrow keys to navigate and make
these changes:

1- Remove the “#” symbol from the line that says `dynamic_chain`.
2- Add the “#” symbol to the lines that say `strict_chain` and
`random_chain`.
3- Remove the “#” symbol from the line that says `proxy_dns`.
4- Append the line `socks5 127.0.0.1 9050` to the proxy list.
FIGURE-11: nano Editor

FIGURE-12: nano editor.

After saving the configuration file, you can exit the terminal and finish the
proxychains setup. The next step is to restart the tor service.

I have initiated the Tor service by executing the command `service tor start`.
To verify that the Tor service is running, I have used the command `service
tor status`.

Command: service tor restart

Command: service tor status


FIGURE-13: Tor service.

The following commands will launch `Firefox` and load `www.bing.com`.


The commands should run without any errors and Bing should load
successfully. Please close all Firefox tabs before executing the commands.

Command: proxychain firefox www.bing.com

FIGURE-14: Start proxychains.


FIGURE-15: Bing open.

As you can see, after executing the proxychains command. Now, let’s
perform a DNS leak test by searching for “DNS leak test” and opening any
website that offers this service.

FIGURE-16: DNS leak test.

You might also like