<?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: Access Any Remote Server Port Without Modifying Firewall Settings</title> <atom:link href="http://www.cyberciti.biz/faq/ssh-port-forwarding-tunneling/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/ssh-port-forwarding-tunneling/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: christian</title><link>http://www.cyberciti.biz/faq/ssh-port-forwarding-tunneling/#comment-38590</link> <dc:creator>christian</dc:creator> <pubDate>Mon, 18 Aug 2008 21:15:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1192#comment-38590</guid> <description>Let me try to clarify:
You would set your ssh server to listen on a port you can open on your firewall (say, the standard ssh port 22). Open that port on your firewall and direct its traffic to your ssh server. Then the ssh (remote) client would connect to the ssh server on port 22, forwarding an available local port to app-servername:3001. Depending on how the app you&#039;re using works, local port might need to be 3001 (though even if that&#039;s not the case it might be a good idea to use that local port to make thinks clearer).
Example of what your ssh client command would look like:
ssh -L 3001:app_server_name:3001 username@sshserver.domain.com
That is:
ssh -L local_port:app_server_name:app_port username@ssh_server_hostname_or_ip_address
Good luck,
Christian</description> <content:encoded><![CDATA[<p>Let me try to clarify:</p><p>You would set your ssh server to listen on a port you can open on your firewall (say, the standard ssh port 22). Open that port on your firewall and direct its traffic to your ssh server. Then the ssh (remote) client would connect to the ssh server on port 22, forwarding an available local port to app-servername:3001. Depending on how the app you&#8217;re using works, local port might need to be 3001 (though even if that&#8217;s not the case it might be a good idea to use that local port to make thinks clearer).</p><p>Example of what your ssh client command would look like:</p><p>ssh -L 3001:app_server_name:3001 <a
href="mailto:username@sshserver.domain.com">username@sshserver.domain.com</a></p><p>That is:</p><p>ssh -L local_port:app_server_name:app_port username@ssh_server_hostname_or_ip_address</p><p>Good luck,<br
/> Christian</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/faq/ssh-port-forwarding-tunneling/#comment-38341</link> <dc:creator>vivek</dc:creator> <pubDate>Fri, 18 Jul 2008 06:30:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1192#comment-38341</guid> <description>Yes,
By setting tunnel via ssh you can access any service or port.</description> <content:encoded><![CDATA[<p>Yes,</p><p>By setting tunnel via ssh you can access any service or port.</p> ]]></content:encoded> </item> <item><title>By: yahoon</title><link>http://www.cyberciti.biz/faq/ssh-port-forwarding-tunneling/#comment-38339</link> <dc:creator>yahoon</dc:creator> <pubDate>Fri, 18 Jul 2008 03:00:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1192#comment-38339</guid> <description>you can access a port that is not opened on the firewall??</description> <content:encoded><![CDATA[<p>you can access a port that is not opened on the firewall??</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/faq/ssh-port-forwarding-tunneling/#comment-38332</link> <dc:creator>vivek</dc:creator> <pubDate>Thu, 17 Jul 2008 09:59:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1192#comment-38332</guid> <description>yahoon,
Why not? I don&#039;t see any problem. I use this techniques all the time.</description> <content:encoded><![CDATA[<p>yahoon,</p><p>Why not? I don&#8217;t see any problem. I use this techniques all the time.</p> ]]></content:encoded> </item> <item><title>By: yahoon</title><link>http://www.cyberciti.biz/faq/ssh-port-forwarding-tunneling/#comment-38322</link> <dc:creator>yahoon</dc:creator> <pubDate>Wed, 16 Jul 2008 04:29:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1192#comment-38322</guid> <description>I don&#039;t think this chapter answer the question
the original question is that:
we want to access the 3001 on the server,but the firewall doesn&#039;t open it.
according to this article.we just can do that access localhost:3001 forwarding to server:80,but not the server:3001 which is what we need.
in fact.we can&#039;t access the ports that are not opened on the firewall.if the firewall does not open 3001 ,we  can&#039;t access the server&#039;s 3001 using this method.</description> <content:encoded><![CDATA[<p>I don&#8217;t think this chapter answer the question</p><p>the original question is that:<br
/> we want to access the 3001 on the server,but the firewall doesn&#8217;t open it.</p><p>according to this article.we just can do that access localhost:3001 forwarding to server:80,but not the server:3001 which is what we need.</p><p>in fact.we can&#8217;t access the ports that are not opened on the firewall.if the firewall does not open 3001 ,we  can&#8217;t access the server&#8217;s 3001 using this method.</p> ]]></content:encoded> </item> <item><title>By: vivek</title><link>http://www.cyberciti.biz/faq/ssh-port-forwarding-tunneling/#comment-38318</link> <dc:creator>vivek</dc:creator> <pubDate>Tue, 15 Jul 2008 18:23:12 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1192#comment-38318</guid> <description>Liju,
Thanks for sharing Apache solution.</description> <content:encoded><![CDATA[<p>Liju,</p><p>Thanks for sharing Apache solution.</p> ]]></content:encoded> </item> <item><title>By: Liju Mathew</title><link>http://www.cyberciti.biz/faq/ssh-port-forwarding-tunneling/#comment-38316</link> <dc:creator>Liju Mathew</dc:creator> <pubDate>Tue, 15 Jul 2008 15:11:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=1192#comment-38316</guid> <description>Hi,
Greetings.
U r using ssh tunneling  for the purpose and it is very secured. It is quite slow if u r using any web application ruunig through ssh tunnel.
If you have a Apache web server which is opened to outside, you can use proxy pass module to access your admin control panel which can be accessible locally from u r network. Also we can able to put IP restriction to it&#039;s access in Apache. All those control panel should be protected by https. A sample entry is listred below,
ServerName adminaccess.mydomain.com
&lt;pre&gt; AuthType Basic
AuthName &quot;Admin Accesss details pls ..... &quot;
AuthUserFile /var/project/passwd
Require valid-user
Deny from all
Allow from 123.123.123.2
ProxyPass / http://prod.secured.local:10000/
ProxyPassReverse / http://prod.secured.local:10000/
ProxyPreserveHost on
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>Hi,<br
/> Greetings.<br
/> U r using ssh tunneling  for the purpose and it is very secured. It is quite slow if u r using any web application ruunig through ssh tunnel.</p><p>If you have a Apache web server which is opened to outside, you can use proxy pass module to access your admin control panel which can be accessible locally from u r network. Also we can able to put IP restriction to it&#8217;s access in Apache. All those control panel should be protected by https. A sample entry is listred below,</p><p>ServerName adminaccess.mydomain.com</p><pre> AuthType Basic
 AuthName "Admin Accesss details pls ..... "
 AuthUserFile /var/project/passwd
 Require valid-user
 Deny from all
 Allow from 123.123.123.2
ProxyPass / <a href="http://prod.secured.local:10000/" rel="nofollow">http://prod.secured.local:10000/</a>
ProxyPassReverse / <a href="http://prod.secured.local:10000/" rel="nofollow">http://prod.secured.local:10000/</a>
ProxyPreserveHost on
</pre>]]></content:encoded> </item> </channel> </rss>
