From d1ff568e56ed4dd0dd071c7d7dfda6af25107cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 9 Jun 2012 14:07:05 +0200 Subject: [PATCH] ssh server as a socks proxy --- ...-your-ssh-server-as-a-socks-proxy.markdown | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 source/_posts/2012-06-09-use-your-ssh-server-as-a-socks-proxy.markdown diff --git a/source/_posts/2012-06-09-use-your-ssh-server-as-a-socks-proxy.markdown b/source/_posts/2012-06-09-use-your-ssh-server-as-a-socks-proxy.markdown new file mode 100644 index 0000000..7abc5aa --- /dev/null +++ b/source/_posts/2012-06-09-use-your-ssh-server-as-a-socks-proxy.markdown @@ -0,0 +1,33 @@ +--- +layout: post +title: "Use your SSH-server as a socks proxy" +date: 2012-06-09 13:18 +comments: true +categories: +--- + +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](http://en.wikipedia.org/wiki/SOCKS), which does the trick. + +Open you ~/.ssh/config on your local machine and add the following lines: +``` apache ~/.ssh/config +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 +``` bash +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](http://getfoxyproxy.org/) extension for firefox to fast setup a connection, whenever needed.