<?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>vacmf &#187; reverse tunnel</title>
	<atom:link href="http://vacmf.org/tag/reverse-tunnel/feed/" rel="self" type="application/rss+xml" />
	<link>http://vacmf.org</link>
	<description>there's more than one way to do it</description>
	<lastBuildDate>Sun, 05 Sep 2010 16:15:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Reverse SSH tunnelling (exit by the door and come back from the window)</title>
		<link>http://vacmf.org/2006/12/20/reverse-ssh-tunnelling/</link>
		<comments>http://vacmf.org/2006/12/20/reverse-ssh-tunnelling/#comments</comments>
		<pubDate>Wed, 20 Dec 2006 10:50:06 +0000</pubDate>
		<dc:creator>shima</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems]]></category>
		<category><![CDATA[reverse tunnel]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[tunnel]]></category>

		<guid isPermaLink="false">http://vacmf.org/2006/12/20/reverse-ssh-tunnelling-exit-by-the-door-and-come-back-from-the-window/</guid>
		<description><![CDATA[Draft What to do when you have a server behind a natted internet connection whitout public IP and you want to access it from your home or somewhere? SSH is your best friend. So you can enable a reverse ssh tunnel that allow a connection from above the intranet. server &#8220;S0&#8243; in the intranet &#8212;->]]></description>
			<content:encoded><![CDATA[<p><em>Draft</em></p>
<p>What to do when you have a server behind a natted internet connection whitout public IP and you want to access it from your home or somewhere?<br />
SSH is your best friend. So you can enable a reverse ssh tunnel that allow a connection from above the intranet.<br />
server &#8220;S0&#8243; in the intranet &#8212;-> Router (without access) &#8212;-> (OoOo Internet oOoO) <---- router (my CISCO 803) <---- "C1" remote computer (my.example.cxm)<br />
In the server S0 I use ssh to create a tunnel that allow my C1 to connect it.</p>
<p><span style="font-weight: bold">On S0</span><br />
ssh -R 5000:localhost:22 my.example.cxm</p>
<p style="font-weight: bold">On Router CISCO</p>
<p>ip nat inside source static tcp 10.1.1.1 5000 interface Dialer 1 5000</p>
<p><span style="font-weight: bold">On C1</span></p>
<p>simply launch: ssh -p 5000 localhost</p>
<p>and you are connected to your server in the office intranet.<br />
<span style="font-weight: bold"><br />
What appen if the connection goes down?</span></p>
<p>we can assure that the tunnel back up again. So we must consider the idea to insert a cron job which check periodically the tunnel status.</p>
<p>next: example shell script</p>
]]></content:encoded>
			<wfw:commentRss>http://vacmf.org/2006/12/20/reverse-ssh-tunnelling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
