<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: Port forwarding with Linux, but no iptables, with socat</title>
	<atom:link href="http://extricate.org/2009/03/16/port-forwarding-with-linux-but-no-iptables-with-socat/feed/" rel="self" type="application/rss+xml" />
	<link>http://extricate.org/2009/03/16/port-forwarding-with-linux-but-no-iptables-with-socat/</link>
	<description>A subtle blend of technical geekery, judo and the life of a football referee.</description>
	<lastBuildDate>Tue, 25 Oct 2011 14:08:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jody</title>
		<link>http://extricate.org/2009/03/16/port-forwarding-with-linux-but-no-iptables-with-socat/comment-page-1/#comment-703</link>
		<dc:creator>Jody</dc:creator>
		<pubDate>Wed, 18 Aug 2010 04:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://extricate.org/?p=250#comment-703</guid>
		<description>This post has confused me a bit.  You said your firewall wasn&#039;t configured properly to allow you access, yet somehow you&#039;re connecting on port 5000 after SSH&#039;ing into the Linux machine and using socat to forward (I assume via the VPN).  What firewall is there between the Linux system and the Windows one that blocks you from going directly into the Windows machine once the VPN connection is established?  You know about SSH tunnels, but you don&#039;t use them even though they&#039;re easily available to you AND easily used in this situation.  If you don&#039;t have SSH on the home machine, how are you SSH&#039;ing to the Linux machine?  And most confusing of all, if you&#039;re trying to RDP into the Windows machine, what on earth does having OpenSSH on the Windows box at work have to do with anything at all when you&#039;re trying to use the home and Linux work machines to do the &quot;bounce&quot; to the work Windows machine?  You may  want to edit the post to clarify why you had to use socat.  Is the firewall specifically blocking RDP connections, rather than just port 3389?  Apologies, but I&#039;m leaving with more questions than answers here and I&#039;m trying to help.

If you have SSH on the Linux box, and you know about SSH tunneling, why didn&#039;t you just set up an SSH tunnel?  Just do something like &quot;ssh -f -L 5000:my-work-pc.somewhere.net:3389 sleep 60&quot; to access the RDP on the PC behind the firewall as localhost:5000, or if you use PuTTY to ssh in, add a local port forward to the connection options before you&#039;re connecting, with local port 5000 and destination my-work-pc.somewhere.net:3389; either way will work.  I do this to print to my work printers via CUPS from my home Windows box.

Obviously, though, your socat solution is *perfectly valid* and you deserve a pat on the back for making it work.  There&#039;s more than one way to skin a netcat.  (Har har har!)</description>
		<content:encoded><![CDATA[<p>This post has confused me a bit.  You said your firewall wasn&#8217;t configured properly to allow you access, yet somehow you&#8217;re connecting on port 5000 after SSH&#8217;ing into the Linux machine and using socat to forward (I assume via the VPN).  What firewall is there between the Linux system and the Windows one that blocks you from going directly into the Windows machine once the VPN connection is established?  You know about SSH tunnels, but you don&#8217;t use them even though they&#8217;re easily available to you AND easily used in this situation.  If you don&#8217;t have SSH on the home machine, how are you SSH&#8217;ing to the Linux machine?  And most confusing of all, if you&#8217;re trying to RDP into the Windows machine, what on earth does having OpenSSH on the Windows box at work have to do with anything at all when you&#8217;re trying to use the home and Linux work machines to do the &#8220;bounce&#8221; to the work Windows machine?  You may  want to edit the post to clarify why you had to use socat.  Is the firewall specifically blocking RDP connections, rather than just port 3389?  Apologies, but I&#8217;m leaving with more questions than answers here and I&#8217;m trying to help.</p>
<p>If you have SSH on the Linux box, and you know about SSH tunneling, why didn&#8217;t you just set up an SSH tunnel?  Just do something like &#8220;ssh -f -L 5000:my-work-pc.somewhere.net:3389 sleep 60&#8243; to access the RDP on the PC behind the firewall as localhost:5000, or if you use PuTTY to ssh in, add a local port forward to the connection options before you&#8217;re connecting, with local port 5000 and destination my-work-pc.somewhere.net:3389; either way will work.  I do this to print to my work printers via CUPS from my home Windows box.</p>
<p>Obviously, though, your socat solution is *perfectly valid* and you deserve a pat on the back for making it work.  There&#8217;s more than one way to skin a netcat.  (Har har har!)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

