How to SSH Tunneling in Windows and Linux
If you ever wanted to ssh tunnel your traffic here is how to do that on Linux box or Windows box.
On Linux box then just enter the following line :
ssh -fND localhost:3443 ServerUName@Server
You gotta change ServerUName to Username and Server to the IP or the name of server you are logging into.
On Windows Box you need to download putty ( Download ) then Open it up
It doesn’t require any installation just double click on putty.exe after it opened up in the left menu select SSH in the “Preferred SSH protocol version” choose 2 and above it check the “Enable Compression”
Then click the plus sign beside SSH in left menu to expand it, then select “Tunnels” afterward in the right section in “Source port” enter for example 3443 and below the destination choose dynamic as in the below figure. ( Sorry in this figure I entered 9191 instead of 3443 but it doesnt matter you can enter whatever you want but you gotta change all the others 3443 as well if you change it)
Then hit “Add”, Now in forwarded lists you would see “D3443”.
Now scroll up the left menu and choose “Session” in the “Host Name” enter the IP Address or the host name and then click on “Open” button
Then it will ask your credential enter them.
So now in Firefox I go to Edit → Preferences → Advanced → Network → Settings → Choose Manual proxy configuration , Uncheck Use this proxy server for all protocols and clean HTTP proxy and its port Field and all the other fields then go to SOCKS Host and enter localhost into that field and in the port field enter 3443.
Then click on ok and close all the window ,
Now all the traffics in Firefox first go to your server and then from that server goes to outside world or to your Computer.
You can confirm that by going to ipchicken.com, You should see the IP Address of the server that you just set for tunneling not your own IP Address.






