blog/source/_posts/2012-06-09-use-your-ssh-server-as-a-socks-proxy.markdown
2015-01-19 13:16:20 +01:00

1.1 KiB

layout title date comments categories description
post Use your SSH-server as a socks proxy 2012-06-09 13:18 true how to use ssh as a proxy for your browser

Sometimes for whatever reason you want a secure internet connection. Maybe because you distrust your local network or your network filter some traffic. Openssh is able to speak the SOCKS protocol, which does the trick.

Open you ~/.ssh/config on your local machine and add the following lines:

Host webtunnel
  HostName domain.tld # replace this with your ip or domain name of your server
  DynamicForward 1080
  User myuser # replace this with your ssh login name

next connect to your server like this

ssh webtunnel

This opens a socks connection on your local machine on port 1080. Now you are able to set up every application to use this proxy. These are the common required settings:

Server: localhost
Port: 1080
Proxy-Type: SOCKS5

Personally I use FoxProxy Basic extension for firefox to fast setup a connection, whenever needed.