SSH Tunneling

How to tunnel the traffic through ssh to get a proxy?

First of all ssh server should accept the TCP Forwarding .. if not so this will not work ..

it’s simple , Lets say that you have 2 servers and your client and to be totally undetectable from any DPI and the traffic will be through the ssh so we will tunnel the traffic from the Client machine to server A [ 1.1.1.1 ] and from server A we will tunnel the traffic to Server B [ 2.2.2.2 ] … This will be also undetectable if its’ established only between the client and the server

So from the CLI excute the following command As ROOT :
[root@Bassem] ssh username@1.1.1.1 -L 8081:2.2.2.2:80 -X

Now you can export your localhost ip 127.0.0.1 on port 8081 to as http/s_proxy or ftp_proxy or on your browser and the local port 8081 will forward the TCP packets to the back end server at the end of the tunnel which will be 80 on 2.2.2.2

Advertisements