{"id":33,"date":"2007-04-12T19:09:11","date_gmt":"2007-04-12T23:09:11","guid":{"rendered":"http:\/\/www.virtualroadside.com\/blog\/index.php\/2007\/04\/12\/dynamic-socks-proxy-using-putty\/"},"modified":"2007-04-12T19:09:11","modified_gmt":"2007-04-12T23:09:11","slug":"dynamic-socks-proxy-using-putty","status":"publish","type":"post","link":"http:\/\/www.virtualroadside.com\/blog\/index.php\/2007\/04\/12\/dynamic-socks-proxy-using-putty\/","title":{"rendered":"Dynamic SOCKS Proxy using PuTTY"},"content":{"rendered":"<p>\u00a0SSH is a powerful tool, and <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\">PuTTY<\/a> is by far my preferred SSH client on Windows. Using SSH, you can use an SSH server as a proxy for any application that will allow you to use a SOCKS-type proxy. Of course, there are a lot of other tunnel types that SSH will allow you to do (X forwarding, remote to local, local to remote, etc), but this type of tunneling is especially useful. I&#8217;m posting this mainly because there isn&#8217;t a whole lot of documentation out there about this particular topic, and the stuff that did exist wasn&#8217;t so clear when I first started using this a few years ago. Without further ado&#8230;<\/p>\n<p><!--more--> <strong>Dynamic Proxy Using PuTTY<\/strong><\/p>\n<p><u>Requirements:<\/u><\/p>\n<ul>\n<li>An SSH server that you can login to, and that supports TCP forwarding. By default, OpenSSH ships with TCP forwarding enabled.<\/li>\n<\/ul>\n<p><u>Steps:<\/u><\/p>\n<ol>\n<li>\u00a0Download PuTTY, and execute it<\/li>\n<li>When you open it, on the left side, expand &#8220;SSH&#8221;, and select &#8220;Tunnels&#8221;. The screen should look something like so: <a href=\"http:\/\/www.virtualroadside.com\/blog\/wp-content\/uploads\/2007\/04\/putty.png\" title=\"Putty\"><img decoding=\"async\" src=\"http:\/\/www.virtualroadside.com\/blog\/wp-content\/uploads\/2007\/04\/putty.thumbnail.png\" alt=\"Putty\" \/><\/a><\/li>\n<li>Pick a port between 1025 and 65535. We will refer to this as &#8220;X&#8221;.<\/li>\n<li>Under source port, select &#8220;Dynamic&#8221;, enter &#8220;X&#8221;, and then enter &#8220;myservername:X&#8221; under destination. Click on &#8220;Add&#8221;, and &#8220;D X&#8221; should appear under &#8216;forwarded ports&#8217;.<\/li>\n<li>Next, select &#8220;Session on the left side. Set hostname to &#8216;myservername&#8217;. Click &#8216;Open&#8217; to login to the server. Enter your username and password, and as long as the window is open and you&#8217;re logged in, the dynamic proxy will be open. You can tell your applications to use &#8216;localhost:X&#8217; as the SOCKS proxy server to use, and it should work nicely.<\/li>\n<\/ol>\n<p>Configuring network applications to actually use the proxy is beyond the scope of this document, but its pretty straightforward if there is an option to use such a proxy. Also, this can also be done on Linux\/Unix using a commandline SSH client as well, refer to the documentation on how that works.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0SSH is a powerful tool, and PuTTY is by far my preferred SSH client on Windows. Using SSH, you can use an SSH server as a proxy for any application that will allow you to use a SOCKS-type proxy. Of course, there are a lot of other tunnel types that SSH will allow you to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"_links":{"self":[{"href":"http:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/33"}],"collection":[{"href":"http:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":0,"href":"http:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.virtualroadside.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}