<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gHacks technology news &#187; socks</title>
	<atom:link href="http://www.ghacks.net/tag/socks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 20:14:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>About PuTTy and Tutorials, including a PuTTy Tutorial.</title>
		<link>http://www.ghacks.net/2008/02/09/about-putty-and-tutorials-including-a-putty-tutorial/</link>
		<comments>http://www.ghacks.net/2008/02/09/about-putty-and-tutorials-including-a-putty-tutorial/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 09:42:37 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[Mobile Computing]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[port forwarding]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[socks]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/2008/02/09/about-putty-and-tutorials-including-a-putty-tutorial/</guid>
		<description><![CDATA[After my last post about the powers of PuTTy in conjunction with an SSH-enabled router, I started thinking about tutorials.]]></description>
			<content:encoded><![CDATA[<p>After my last <a href="http://www.ghacks.net/2008/02/05/fun-things-to-do-with-putty-and-linux-routers/">post</a> about the powers of PuTTy in conjunction with an SSH-enabled router, I started thinking about tutorials.</p>
<p>I am not a big tutorial-fan, cause I always can&#8217;t quite shake the feeling that I&#8217;m doing something here I have no particular knowledge of. And depending on what I do, this bothers me. A lot. Take sewing for instance (yes, I do indeed enjoy the fun of sewing, at least as long as it is fun); in the beginning I only did pre-set tutorials. I got to see some achievements, pretty fast as well, and was happy. But the clothings didn&#8217;t fit that well, more often than not I had to make corrections to be at least a bit satisfied with my work.</p>
<p>By now, I do most of my sewing patterns myself by taking bits from tutorials and knowledge and putting them together, and it works just fine for me. My point is, tutorials are often brief, giving appealing results in a short time, but often lack some of the necessary theory. Ever happened to you that you did something with a tutorial that just would not work? And after going through the complete text again, looking at all pictures, you realize there&#8217;s a small mistake in it, or something you wouldn&#8217;t have thought of, which the author took as given?</p>
<p><span id="more-3154"></span>I guess that&#8217;s the reason I don&#8217;t want to write tutorials, the danger of missing something (or to cut off too much or something like that) or to have people sitting in front of it thinking &#8220;Screw this guy, this just doesn&#8217;t work!&#8221;. Plus, there are plenty of tutorials out there regarding nearly any topic. Or are there?</p>
<p>But &#8211; as the headline suspects &#8211; I&#8217;m gonna break with this habit for now, and give you a few shots and explanations regarding my former post. No tutorial in a classical sense, but one like I  try to write my stuff as well: just concepts and ideas, but this time with pictures.</p>
<p>So let&#8217;s get started. Since I&#8217;m keeping my connection open most of the time, I&#8217;m using <a href="http://www.xs4all.nl/~whaa/putty/">PuTTyTray</a> instead of the regular <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTy</a> or its <a href="http://portableapps.com/apps/internet/putty_portable">portable</a> cousin, so some functions described here are not available in other versions.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2008/02/ss-00002-mod.jpg" alt="putty tutorial ss1" /></p>
<p>Here we got the starting screen. Use &#8220;Settings from file&#8221; (at the bottom of the screen) to save sessions to a file in the PuTTy-directory instead of the windows-registry. An absolute must for all portable users. The first ellipse is where you type your target server&#8217;s (or router&#8217;s, in our case) IP in. If you can&#8217;t remember your IP at any time or get dynamic IPs, make an dyndns-account to save you trouble. Most Routers come with built-in dyndns-support anyway nowadays, sparing you the effort of an update tool. Of course, we want to have &#8220;SSH&#8221; as a connection type, but it&#8217;s per default enabled, so there shouldn&#8217;t be any problems.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2008/02/ss-00003-mod.jpg" alt="putty tutorial ss2" /></p>
<p>Ah, that one took me awhile to figure out. Or to be more precise: I was swearing and cursing about the problem I encountered and by accident managed to find a solution in the settings for my terminal, which struck me to be very odd. So I wanna share my insights. The option I circled changes the character send to the server by pressing the backspace-key. Since the routers I mentioned all use some sort of linux, you might wanna change the option to the right one, &#8220;Control+? (127)&#8221;. Without that enabled, my fritzbox would only type &#8220;[^&#8221; or something like that instead of deleting the last character. Very annoying.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2008/02/ss-00004-mod.jpg" alt="putty tutorial ss3" /></p>
<p>That one is one of the PuTTyTray-only functions I mentioned that I don&#8217;t wanna miss ever again, regardless how more convenient PuTTyPortable sometimes might be for my purposes. Leave the option on &#8220;normal&#8221; to start it in normal terminal mode. I prefer that one, since I want to use password-authentication. No use minimizing the window to tray on start, only to have to bring it back up, type the password in and minimize it again. &#8220;Always&#8221; and &#8220;Never&#8221; produced funny behaviors that I couldn&#8217;t get a hold of, but, if you wanna guess and like riddles, go and give it a try.</p>
<p>And oh, the &#8220;Accept single-click&#8230;&#8221;-option is nice as well, if you use this kind of restoring in all of your programs. Mixing double-click and single-click is definitely not a good idea, at least not for me.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2008/02/ss-00005-mod.jpg" alt="putty tutorial ss4" /></p>
<p>Oh, yeah. Not that important, I gotta admit. But it would allow you to pick a username that&#8217;s hard to remember (please don&#8217;t say anything about the &#8220;root&#8221; I typed in there.. it is for demonstration purposes only!), and even harder to guess. When using password authentication, I only have to type in my password and not my username. spares me ~1.2 seconds. yay!</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2008/02/ss-00007-mod.jpg" alt="putty tutorial ss5" /></p>
<p>Painting Frenzy!! Okay, now here we go. This tab is the mekka for all your needs, the holy grail of port forwarding.<br />
The first option I circled is recommended to use, but it is not without risks (security, mostly). Some protocols may need this option to function properly though. When you look at the entries 1, 2 and 3 they all have a source port (the first column) and a destination (the second one), like my arrows &#8211; done extremely skilled, if I may say so &#8211; try to show you.</p>
<p>1.) This is a standard port forwarding like used by any program. I specified my source port, which is 5700 (always select &#8220;local&#8221; as a type if unsure for the others and their doings), and a destination that is usually an IP plus a port. As you can see or at least guess, it&#8217;s for VNC (port 5900), and it&#8217;s for a fictional desktop in my home network.</p>
<p>2.) That one I use for the emulation of a vpn. Remember the virtual network adapter I had to create? I gave it the very innovative IP 10.0.0.1, Windows File Sharing services use port 139, so its 10.0.0.1:139 for source. The destination is my main network-hard drive with the very same port. If you specify an IP for the source port, the port is only forwarded if the accordant network adapter is used. In case of the file sharing, I had to do this, since I wanted to work both ways at the same time &#8211; local file sharing and file sharing over SSH. If you need only one of both, feel free to just forward the port without a source IP.</p>
<p>3.) This one is pretty much like the first, but it points to a virtual network card I created on my Router. I did so because it is forbidden to map any ports directly to the routers own IP, but mapping to the virtual NIC is allowed. Here, I&#8217;m forwarding localhost&#8217;s port 80 (do NOT do this when running a webserver or any software using port 80) to the virtual NIC&#8217;s port 80, so I can display my router&#8217;s status page in my browser here at work, taking a look at phone lists and the like. I also could&#8217;ve made a port forwarding like &#8220;6666      192.168.178.253:80&#8243;, to view my routers page then, I would have to connect to &#8220;localhost:6666&#8243; in my browser, as well as for connecting my VNC, I have to connect to &#8220;&lt;dyndns-address&gt;:5700&#8243; instead of just &#8220;&lt;dyndns-address&gt;&#8221;.</p>
<p>Be careful with the Connection -&gt; Proxy-Tab though. You don&#8217;t have to specify anything here for PuTTy to provide the SOCKS-proxy I mentioned. This is only necessary if PuTTy is forced (or wanted) to use a proxy to connect to the target net (usually, the internet) itself, like when using PuTTy over TOR for instance, which is by the way in my opinion the most comfortable way of using TOR there is.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2008/02/ss-00008-mod.jpg" alt="putty tutorial ss6" /></p>
<p>Oh my, I almost forgot that one.. this is crucial when keeping your connection up and running for a long time. If the connection gets broken there is a chance that your server-component remains active and running on the router, and if your reconnect, you got a second one running, and a third one if that happens again.. you catch my drift. I chose a value of 60 seconds, and it works for me. It was a more or less random choice though, other values might do equally fine.</p>
<p>Okay. I admit, that didn&#8217;t hurt that much at all. Maybe I will just&#8230;  keep posting funny daubed pictures about programs I use&#8230;</p>
<p>cya all soon! :)</p>

	Tags: <a href="http://www.ghacks.net/tag/port-forwarding/" title="port forwarding" rel="tag">port forwarding</a>, <a href="http://www.ghacks.net/tag/proxy/" title="proxy" rel="tag">proxy</a>, <a href="http://www.ghacks.net/tag/putty/" title="putty" rel="tag">putty</a>, <a href="http://www.ghacks.net/tag/socks/" title="socks" rel="tag">socks</a>, <a href="http://www.ghacks.net/tag/ssh/" title="ssh" rel="tag">ssh</a>, <a href="http://www.ghacks.net/tag/tutorial/" title="tutorial" rel="tag">tutorial</a>, <a href="http://www.ghacks.net/tag/vnc/" title="vnc" rel="tag">vnc</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/02/05/fun-things-to-do-with-putty-and-linux-routers/" title="Fun Things to do with PuTTy and Linux-Routers (February 5, 2008)">Fun Things to do with PuTTy and Linux-Routers</a> (7)</li>
	<li><a href="http://www.ghacks.net/2006/11/18/top-xp-freeware-that-every-user-needs-part-3/" title="Top Xp Freeware that every user needs part 3 (November 18, 2006)">Top Xp Freeware that every user needs part 3</a> (5)</li>
	<li><a href="http://www.ghacks.net/2008/11/17/my-encrypted-tunnel/" title="My Encrypted Tunnel (November 17, 2008)">My Encrypted Tunnel</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/" title="Manage your ssh connections with SecPanel (September 25, 2009)">Manage your ssh connections with SecPanel</a> (6)</li>
	<li><a href="http://www.ghacks.net/2009/10/11/manage-servers-for-putty-winscp-vnc-and-microsoft-terminal-server/" title="Manage Servers For Putty WinSCP VNC And Microsoft Terminal Server (October 11, 2009)">Manage Servers For Putty WinSCP VNC And Microsoft Terminal Server</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/02/09/about-putty-and-tutorials-including-a-putty-tutorial/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fun Things to do with PuTTy and Linux-Routers</title>
		<link>http://www.ghacks.net/2008/02/05/fun-things-to-do-with-putty-and-linux-routers/</link>
		<comments>http://www.ghacks.net/2008/02/05/fun-things-to-do-with-putty-and-linux-routers/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 17:04:05 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[Mobile Computing]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[dropbear]]></category>
		<category><![CDATA[etherwake]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[socks]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/2008/02/05/fun-things-to-do-with-putty-and-linux-routers/</guid>
		<description><![CDATA[If you set up some kind of SSH Connection on a windows computer over the past few years, be it to connect to the university's network or to secure a line for an insecure FTP Transfer,you have probably encountered the program PuTTy on the way to salvation. It's easy to use, free and OSSish powerful. What many people don't know about PuTTy though, is what other powers aside from or better in addition to SSH slumber inside the little executable.]]></description>
			<content:encoded><![CDATA[<p>If you set up some kind of SSH Connection on a windows computer over the past few years, be it to connect to the university&#8217;s network or to secure a line for an insecure FTP Transfer,you have probably encountered the program <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTy</a> on the way to salvation. It&#8217;s easy to use, free and OSSish powerful. What many people don&#8217;t know about PuTTy though, is what other powers aside from or better in addition to SSH slumber inside the little executable.</p>
<p>I was no exception to this when I decided to fool around a bit with my AVM Fritz!Box (Broadband Router quite common in Germany and Austria that runs with Linux) and installed &#8211; among other amusing things &#8211; the <a href="http://matt.ucc.asn.au/dropbear/dropbear.html">dropbear SSH Server</a> on it. I was then able to connect to my home network from all around the world using just my dyndns-account and PuTTy, or better his cousin <a href="http://portableapps.com/apps/internet/putty_portable">PuTTyPortable</a>, which runs from thumb drives without leaving traces behind on the host system. Oh the joy!</p>
<p>After going through the massive troubles of installing and configuring dropbear via FTP and VM, I first started to think about the use I could get out of this.</p>
<p><span id="more-3122"></span><em>note</em>: I didn&#8217;t intend to give instructions of how to use PuTTy or to set up those functions I mention, more to give some inspiration. Google helps all, but if someone is interested in a particular HowTo, just ask, I&#8217;m here ;).</p>
<p>First of all, I found out that I could use my encrypted Connection to eliminate some holes in my firewall, VNC always being a big thorn in my side. If I use the standard ports, it&#8217;s insecure, and if I use custom ports, I&#8217;m bound to fail to remember them when needed. With the SSH Connection, I only have to remember one custom port (in fact, PuTTy does remember it), and I can spare the additional effort and cpu time for encrypting VNC sessions, as well as I could stuff all commonly used holes in my firewall.</p>
<p>Incredibly simple, but at the same time incredibly effective. If you want something like this, the tunneling function (also port forwarding) is for you. It also allowed me &#8211; with some tweaking on the router as well &#8211; to view the html-based configuration side from outside over the secure line, taking a look at the list of calls received in absence.</p>
<p>The next useful function I could think of was to use my secure Connection to obscure my internet traffic. Not to circumvent IP-Checks, but to prevent the casual network analyzer of having anything to work with besides my current IP at home. No destination, no protocol, no data. Setting it up was even easier than setting up the port tunnels, which, from time to time, tend to be a real pain in the ass, so to speak. For every open SSH Connection and without further configuration, PuTTy procures a full-fledged SOCKS proxy server for you. Ain&#8217;t that nice? And with plugins like <a href="https://addons.mozilla.org/de/firefox/addon/1557">QuickProxy</a> for <a href="http://www.ghacks.net/tag/firefox/">Firefox</a> you are free to switch it on or off as you like. Which, of course, is also available as a <a href="http://portableapps.com/apps/internet/firefox_portable">portable version</a>. But you all knew that already.</p>
<p>The third function I use pretty often was a nasty one to get by, but it was definitely worth the trouble, since it fits my setting nigh perfectly. I&#8217;m quite fond of VPNs, but I have yet to encounter a VPN-software that really satisfies me and my personal needs and/or beliefs. So, among the other amusing programs I set up on my router (as mentioned above), was a VPN-server, to allow me to connect to my network-enabled hard drives at home. To cut it short, it worked, I felt secure and all, but it was impossible to take the solution with me, since all VPN-Implementations (OpenVPN, that is) required installation and the creation (and configuration) of a virtual network adapter. So I tried to bring up a feasible solution involving PuTTy.</p>
<p>The easy one was to use a protocol that allows you to transfer files, (s)FTP, SCP, or even HTTP, but all require a special server component to be run on the target, which is not possible for me without leaving one of my computers on, which is entirely out of the question. The NAS is even able to manage FTP, but it would require me to rely on FTP and FTP alone. No Samba and FTP at the same time for the same files. So I had to discard that as well.</p>
<p>The next thought was to just forward port 139 (used by windows filesharing services) to my target network. It would&#8217;ve worked, but it would&#8217;ve rendered me incapable of using the filesharing service for local shares. I&#8217;m using this solution at work, so it&#8217;s either home or work. It would work, I could only start up the connection of needed, and so on, but I wasn&#8217;t just happy with it, so I digged further.</p>
<p>If I had found a software for windows, that used <em>not</em> the windows filesharing service but an own implementation of it, I could just tell it to use another port and forward that one, but unfortunately, I found no such program.<br />
The best I could come up with was to create a network adapter as VPN does, but without configuring anything on it except for a meaningless IP, and then forward all traffic on 10.0.0.1:139 to my network at home. Works like a charm, but if anyone ever happens to find a program like mentioned above, I would be more than happy to give it a try. Portable Applications preferred ;)</p>
<p>Another function available, though I did not use it very often, was the forwarding of the X11-protocol used by common Linux-desktops, which gives you the power of controlling the remote computer similar to VNC but without the need for additional software.</p>
<p>The last one I want to mention is not one of PuTTy, but one that uses its opened shell to go through with it. A little program called etherwake can be run on common Linux-powered systems which enables you to start your computer without actually sitting in front of it via the magic of WOL (pun intended). A pre-set shell-script that&#8217;s run with a short command, a VNC server installed as a service, and you&#8217;re good to go. Connect the Router, wake up the computer, connect using VNC and take a look at the all-important document you left at home.</p>
<p>So, if you happen to own a Fritz!Box or one of them shiny, new, world-wide-available OpenSource-Routers, or just an old crappy computer that could deliver a reasonable SSH server for an equally reasonable amount of watts spent, maybe those ideas incorporated one for you.</p>
<p>Also, please notice that <a href="http://www.xs4all.nl/~whaa/putty/">PuTTyTray</a> works from Thumb Drives as well without leaving any Data behind (if you use the &#8220;session from file&#8221;-option), but has the advantage that it can be minimized to the system tray.</p>
<p>If you&#8217;re planning on keeping the connection up for quite some time, also remember to activate the &#8220;Keep Alive&#8221;-function ;)</p>
<p><em>Edit</em>: After getting rebuked for not doing it from the beginning, I&#8217;d like to incorporate some useful links that might get you started.<br />
<a href="http://www.tecchannel.de/server/extra/432967/">Complete Installation Guide</a> for Telnet, FTP, SSH, WOL &amp; VPN on a Fritz!Box, German.<br />
You can also get this functions creating a nice and easy pseudo-firmware-image <a href="http://www.the-construct.com/?p=pseudoimage">here</a>, but I guess one could lack the insight needed to fill in all the right information if he never did it manually before. So, feel free to screw around using the above link and once you figured it all out, use this one. Also German, but with very little text ;)<br />
Another <a href="http://hetos.de/sshtut.html">tutorial</a>, this time for the Linksys WRT54G, including SSH and Tunneling. </p>
<p>Thx again to Ace_NoOne, who could&#8217;ve used Google instead ;)</p>

	Tags: <a href="http://www.ghacks.net/tag/dropbear/" title="dropbear" rel="tag">dropbear</a>, <a href="http://www.ghacks.net/tag/etherwake/" title="etherwake" rel="tag">etherwake</a>, <a href="http://www.ghacks.net/tag/proxy/" title="proxy" rel="tag">proxy</a>, <a href="http://www.ghacks.net/tag/putty/" title="putty" rel="tag">putty</a>, <a href="http://www.ghacks.net/tag/socks/" title="socks" rel="tag">socks</a>, <a href="http://www.ghacks.net/tag/ssh/" title="ssh" rel="tag">ssh</a>, <a href="http://www.ghacks.net/tag/vpn/" title="vpn" rel="tag">vpn</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/02/09/about-putty-and-tutorials-including-a-putty-tutorial/" title="About PuTTy and Tutorials, including a PuTTy Tutorial. (February 9, 2008)">About PuTTy and Tutorials, including a PuTTy Tutorial.</a> (3)</li>
	<li><a href="http://www.ghacks.net/2006/11/18/top-xp-freeware-that-every-user-needs-part-3/" title="Top Xp Freeware that every user needs part 3 (November 18, 2006)">Top Xp Freeware that every user needs part 3</a> (5)</li>
	<li><a href="http://www.ghacks.net/2009/04/15/proxy-server-usage-to-extend-jailtime-in-the-us/" title="Proxy Server Usage To Extend Jailtime In The US (April 15, 2009)">Proxy Server Usage To Extend Jailtime In The US</a> (8)</li>
	<li><a href="http://www.ghacks.net/2008/11/17/my-encrypted-tunnel/" title="My Encrypted Tunnel (November 17, 2008)">My Encrypted Tunnel</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/" title="Manage your ssh connections with SecPanel (September 25, 2009)">Manage your ssh connections with SecPanel</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/02/05/fun-things-to-do-with-putty-and-linux-routers/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
