no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | ssh_connection_as_socks_proxy [16.07.2013 07:06] (current) – created Pascal Suter | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== SSH connection as socks proxy ====== | ||
+ | sometimes it is very useful to have http access into a remote network but you can only reach one single linux machine inside this network. there is a simple way to tunnel http requests from firefox through your ssh connection: | ||
+ | |||
+ | connect with the -D option to set up the proxy service | ||
+ | ssh -D 1080 user@some.server.somewhere | ||
+ | this will now run a local socks proxy on localhost: | ||
+ | |||
+ | in order to get firefox to use this tunnel, you need to configure a socks proxy in firefox. since you might want to switch this proxy on and off several times it is a good idea to use an add-on to do this, so it can be done with a single button: | ||
+ | |||
+ | - install the **MM3 ProxySwitcher** Addon | ||
+ | - restart firefox | ||
+ | - right click on the toolbar and choose **customize...** | ||
+ | - add the mm3 button to your toolbar | ||
+ | - click on the little down pointing arrow next to your mm3 button and choose **Edit** | ||
+ | - replace the settings with these: < | ||
+ | [Socks Proxy | ||
+ | socks=127.0.0.1: | ||
+ | noProxy=127.0.0.1: | ||
+ | config: | ||
+ | ] | ||
+ | </ | ||
+ | - now switch the proxy ond and off by clicking on the mm3 button. it's on when it's red and off when grayed out. | ||
+ | |||