<?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/"
		>
<channel>
	<title>Comments on: SSH Reverse Tunnel To Access Box Behind Firewall</title>
	<atom:link href="http://www.rustyrazorblade.com/2010/03/ssh-reverse-tunnel-to-access-box-behind-firewall/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rustyrazorblade.com/2010/03/ssh-reverse-tunnel-to-access-box-behind-firewall/</link>
	<description>Tech Thoughts, Mostly on LAMP - by Jon Haddad</description>
	<lastBuildDate>Mon, 23 Jan 2012 09:03:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: jon</title>
		<link>http://www.rustyrazorblade.com/2010/03/ssh-reverse-tunnel-to-access-box-behind-firewall/comment-page-1/#comment-54213</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Fri, 29 Oct 2010 04:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1032#comment-54213</guid>
		<description>On #1 - no, the 2 aren&#039;t using the same port.  You&#039;re routing through an SSH connection, which connects to port 80 on the other side.

I&#039;m not sure I understand question #2.

If you can SSH into the remote server, you can just do this

ssh -D 9999 remote.server.com

Then set up the SOCKS proxy to point to localhost port 9999.</description>
		<content:encoded><![CDATA[<p>On #1 &#8211; no, the 2 aren&#8217;t using the same port.  You&#8217;re routing through an SSH connection, which connects to port 80 on the other side.</p>
<p>I&#8217;m not sure I understand question #2.</p>
<p>If you can SSH into the remote server, you can just do this</p>
<p>ssh -D 9999 remote.server.com</p>
<p>Then set up the SOCKS proxy to point to localhost port 9999.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pizza</title>
		<link>http://www.rustyrazorblade.com/2010/03/ssh-reverse-tunnel-to-access-box-behind-firewall/comment-page-1/#comment-54154</link>
		<dc:creator>pizza</dc:creator>
		<pubDate>Thu, 28 Oct 2010 02:58:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1032#comment-54154</guid>
		<description>Sorry, for the questions, but I am really curious d;P... just thinking all the possibilities

1))
base on ur example I assume BOTH SSH and Web Server uses the same port, but I thought that no 2 application can use the same port ?

2))
Is this the Network overview from ur example?
User:9999 –Tunnel 1–&gt; my.home.com:5000 –Tunnel 2–&gt; my.remote.com:22
(User in same network as home server)

or (user is at home server)
my.home.com:5000(redirect to port 9999) –Tunnel 2–&gt; my.remote.com:22

3))
Below is just for my curiosity
if no reverse SSH is made from the remote web server, but u know port 22 is opened. can u still access remote web server ?

Probably not since most of firewall will allow request going out but not for requests coming in from outside of its network ....</description>
		<content:encoded><![CDATA[<p>Sorry, for the questions, but I am really curious d;P&#8230; just thinking all the possibilities</p>
<p>1))<br />
base on ur example I assume BOTH SSH and Web Server uses the same port, but I thought that no 2 application can use the same port ?</p>
<p>2))<br />
Is this the Network overview from ur example?<br />
User:9999 –Tunnel 1–&gt; my.home.com:5000 –Tunnel 2–&gt; my.remote.com:22<br />
(User in same network as home server)</p>
<p>or (user is at home server)<br />
my.home.com:5000(redirect to port 9999) –Tunnel 2–&gt; my.remote.com:22</p>
<p>3))<br />
Below is just for my curiosity<br />
if no reverse SSH is made from the remote web server, but u know port 22 is opened. can u still access remote web server ?</p>
<p>Probably not since most of firewall will allow request going out but not for requests coming in from outside of its network &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.rustyrazorblade.com/2010/03/ssh-reverse-tunnel-to-access-box-behind-firewall/comment-page-1/#comment-53926</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Fri, 22 Oct 2010 23:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1032#comment-53926</guid>
		<description>Hi Pizza.

Command 1 executes from the machine behind firewall.
Command 2 &amp; 3 you execute on your home machine.

You execute command 1 on the machine behind the firewall in order to come back to yourself at home.  It opens up port 5000 at home automatically.

It can be done with a 3rd server in the middle - but it&#039;s a pain.  It&#039;s why I opened port 22 and pointed it to my home machine.</description>
		<content:encoded><![CDATA[<p>Hi Pizza.</p>
<p>Command 1 executes from the machine behind firewall.<br />
Command 2 &#038; 3 you execute on your home machine.</p>
<p>You execute command 1 on the machine behind the firewall in order to come back to yourself at home.  It opens up port 5000 at home automatically.</p>
<p>It can be done with a 3rd server in the middle &#8211; but it&#8217;s a pain.  It&#8217;s why I opened port 22 and pointed it to my home machine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pizza</title>
		<link>http://www.rustyrazorblade.com/2010/03/ssh-reverse-tunnel-to-access-box-behind-firewall/comment-page-1/#comment-53785</link>
		<dc:creator>pizza</dc:creator>
		<pubDate>Tue, 19 Oct 2010 04:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1032#comment-53785</guid>
		<description>oops let me address the PS. part again

Enter the below 3 commands ?
1) From Remote Server (with web content which we want to access):
ssh -R 5000:my.remote.com:22 username1@my.home.com

2) From User – Not in web server (my.remote.com) or SSH server (my.home.com) network
ssh -D 9999 username2@my.home.com -p 5000

3) Proxy Set to:
localhost:9999 or user&#039;s IP:9999

SSH Data:
User:22 --Tunnel 1--&gt;my.home.com:22--Tunnel 2--&gt;my.remote.com:22

my.home.com:don&#039;t really need to use 22 , it will depends on the SSH server

Web Server Content:
User:9999 --Tunnel 1--&gt;my.home.com:5000--Tunnel 2--&gt;my.remote.com:22</description>
		<content:encoded><![CDATA[<p>oops let me address the PS. part again</p>
<p>Enter the below 3 commands ?<br />
1) From Remote Server (with web content which we want to access):<br />
ssh -R 5000:my.remote.com:22 <a href="mailto:username1@my.home.com">username1@my.home.com</a></p>
<p>2) From User – Not in web server (my.remote.com) or SSH server (my.home.com) network<br />
ssh -D 9999 <a href="mailto:username2@my.home.com">username2@my.home.com</a> -p 5000</p>
<p>3) Proxy Set to:<br />
localhost:9999 or user&#8217;s IP:9999</p>
<p>SSH Data:<br />
User:22 &#8211;Tunnel 1&#8211;&gt;my.home.com:22&#8211;Tunnel 2&#8211;&gt;my.remote.com:22</p>
<p>my.home.com:don&#8217;t really need to use 22 , it will depends on the SSH server</p>
<p>Web Server Content:<br />
User:9999 &#8211;Tunnel 1&#8211;&gt;my.home.com:5000&#8211;Tunnel 2&#8211;&gt;my.remote.com:22</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pizza</title>
		<link>http://www.rustyrazorblade.com/2010/03/ssh-reverse-tunnel-to-access-box-behind-firewall/comment-page-1/#comment-53783</link>
		<dc:creator>pizza</dc:creator>
		<pubDate>Tue, 19 Oct 2010 04:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1032#comment-53783</guid>
		<description>Can u be more specific on the &quot;localhost&quot; ?
1.
ssh -R 5000:localhost:22 username@my.home.com
localhost refers to remote server (my.remote.com)

2.
ssh localhost -p 5000
localhost refers to home server (my.home.com)

3.
ssh -D 9999 username@localhost -p 5000
localhost refers to home server (my.home.com)

Use either one will do

PS. Above assumes user is using the SSH server (my.home.com), how about if u r accessing from a 3rd PC which is not within either of the two network ? (my.home.com / my.remote.com)?

do as below 2 commands ?
From Remote Server (with web content which we want to access):
ssh -R 5000:my.remote.com:22 username@my.home.com

From User - Not in web server (my.remote.com) or SSH server (my.home.com) network
ssh -D 9999 username@localhost -p 5000

sorry, the its kind of complex with the use of &quot;localhost&quot;

Is above description correct ?</description>
		<content:encoded><![CDATA[<p>Can u be more specific on the &#8220;localhost&#8221; ?<br />
1.<br />
ssh -R 5000:localhost:22 <a href="mailto:username@my.home.com">username@my.home.com</a><br />
localhost refers to remote server (my.remote.com)</p>
<p>2.<br />
ssh localhost -p 5000<br />
localhost refers to home server (my.home.com)</p>
<p>3.<br />
ssh -D 9999 username@localhost -p 5000<br />
localhost refers to home server (my.home.com)</p>
<p>Use either one will do</p>
<p>PS. Above assumes user is using the SSH server (my.home.com), how about if u r accessing from a 3rd PC which is not within either of the two network ? (my.home.com / my.remote.com)?</p>
<p>do as below 2 commands ?<br />
From Remote Server (with web content which we want to access):<br />
ssh -R 5000:my.remote.com:22 <a href="mailto:username@my.home.com">username@my.home.com</a></p>
<p>From User &#8211; Not in web server (my.remote.com) or SSH server (my.home.com) network<br />
ssh -D 9999 username@localhost -p 5000</p>
<p>sorry, the its kind of complex with the use of &#8220;localhost&#8221;</p>
<p>Is above description correct ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir Grichina</title>
		<link>http://www.rustyrazorblade.com/2010/03/ssh-reverse-tunnel-to-access-box-behind-firewall/comment-page-1/#comment-52643</link>
		<dc:creator>Vladimir Grichina</dc:creator>
		<pubDate>Mon, 06 Sep 2010 16:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1032#comment-52643</guid>
		<description>Sometimes when all you need is to make your development web server publicly accessible, localtunnel tool would be handy for you http://www.componentix.com/blog/17</description>
		<content:encoded><![CDATA[<p>Sometimes when all you need is to make your development web server publicly accessible, localtunnel tool would be handy for you <a href="http://www.componentix.com/blog/17" rel="nofollow">http://www.componentix.com/blog/17</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam S</title>
		<link>http://www.rustyrazorblade.com/2010/03/ssh-reverse-tunnel-to-access-box-behind-firewall/comment-page-1/#comment-48418</link>
		<dc:creator>Sam S</dc:creator>
		<pubDate>Sun, 07 Mar 2010 23:31:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=1032#comment-48418</guid>
		<description>thanks man. this freaken rules.

plus this: http://www.rustyrazorblade.com/2009/09/helpful-guide-for-setting-up-sshfs-on-mac/

i can work from home using proper tools!</description>
		<content:encoded><![CDATA[<p>thanks man. this freaken rules.</p>
<p>plus this: <a href="http://www.rustyrazorblade.com/2009/09/helpful-guide-for-setting-up-sshfs-on-mac/" rel="nofollow">http://www.rustyrazorblade.com/2009/09/helpful-guide-for-setting-up-sshfs-on-mac/</a></p>
<p>i can work from home using proper tools!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

