Linux

Creating SOCKS Web Proxy using SSH

Introduction:

It is known that one can use SSH to create a Tunnel but SSH has more tricks in its sleeves. It can be used to create a SOCKS based Web proxy.
The full explanation is really clearly shown in this article: Thanks to the author for that.
https://ma.ttias.be/socks-proxy-linux-ssh-bypass-content-filters/

Basics:
Prerequisites: A Linux server in Internet with SSH service running which will be used as SOCKS Proxy.

Logic:
Desktop Browser+SSH(localhost) ==>> Internet SSH Server(example-ssh-server.com) ==>> World Wide Web

Steps:

In the desktop terminal: run the following SSH command.

ssh -D 1337 -q -C -N -f example-ssh-server.com

(the command will look like ‘stuck’ but it’s doing its job of proxying in the background)

In the browser:
Set the Web Browser Proxy configuration to:
Proxy type: SOCKS V5
SOCKS Host: localhost
Port: 1337

That’s it.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.