<?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>[protofusion] &#187; insurgent</title> <atom:link href="http://protofusion.org/wordpress/tag/insurgent/feed/" rel="self" type="application/rss+xml" /><link>http://protofusion.org/wordpress</link> <description>Generally Interesting</description> <lastBuildDate>Sat, 19 May 2012 17:48:20 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Insurgency: Access your linux box from anywhere</title><link>http://protofusion.org/wordpress/2009/12/insurgency-access-your-linux-box-from-anywhere/</link> <comments>http://protofusion.org/wordpress/2009/12/insurgency-access-your-linux-box-from-anywhere/#comments</comments> <pubDate>Sun, 13 Dec 2009 07:33:15 +0000</pubDate> <dc:creator>Ethan Zonca</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Quick Tips]]></category> <category><![CDATA[insurgent]]></category> <category><![CDATA[networking]]></category> <category><![CDATA[port-forwarding]]></category> <category><![CDATA[ssh]]></category><guid
isPermaLink="false">http://protofusion.org/wordpress/?p=184</guid> <description><![CDATA[The problem: you have a computer sitting behind a firewall. You want to access it from a different location, but ]]></description> <content:encoded><![CDATA[<p><img
class="size-full   alignnone" title="Networking" src="http://pf-wordpress.s3.amazonaws.com/wordpress/wp-content/uploads/2009/12/3834148667_ceeeb12b4a_b.jpg" alt="Routers :: Credit: flicr user stars6" width="438" height="208" /></p><p>The problem: you have a computer sitting behind a firewall. You want to access it from a different location, but you don&#8217;t have the ability to forward any ports to it. The answer: SSH tunneling.<br
/> <span
id="more-184"></span><br
/><h2>The Solution</h2><p>Using an SSH tunnel, you can reverse-forward ports from one computer to another. To do this, you will need a computer running linux and <a
href="http://openssh.org/">sshd</a> to reverse-forward the ports to. It is very convenient if this is the computer you will be using to access the remote machine. Otherwise, additional steps must be taken.</p><h2>The Setup</h2><p>The easiest way to set up and maintain a reverse port-forwarding tunnel is with ohnobinki&#8217;s <a
href="http://ohnopublishing.net/hg/insurgent" target="_blank">insurgent</a> script. The script allows you to specify a remote host and the ports you want to reverse-forward. To start off, create a new user on your system, such as <tt>insurgent</tt>. Log in or start a shell as this user. Assuming you have <a
href="http://mercurial.selenic.com/">mercurial</a> installed, run:</p><blockquote><p><code>hg clone https://ohnopublishing.net/hg/insurgent</code></p></blockquote><p>Now cd to the newly created insurgent/bin directory. Finally, place the contents of insurgent/share/contab.txt into your crontab (use <tt>crontab -e</tt> to edit your crontab).</p><p>Now you simply need to configure the script. To do so, open insurgent.sh in your favorite editor, and update the REMOTE_HOST and other variables. The format for ports is [remoteport]:hostname:[localport] (<a
href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh&#038;sektion=1#TCP+FORWARDING">ssh(1)</a> ). I recommend starting with reverse-fowarding SSH (port 22), a vnc session (590x where x is the VNC display number), and nfs.</p><p>If you have not done so already, you need to set up <a
href="/wordpress/2009/12/quick-and-easy-passwordless-public-key-auth/">passwordless public key authentication</a> for the new <tt>insurgent</tt> user.</p><h2>You&#8217;re Done!</h2><p>If you&#8217;ve gotten this far, you may be ready to go. You should be able to access any port on your insurgent box via the corresponding port on your local box. Have any problems? Drop some comments below or pop into <a
href="irc://irc.ohnopub.net/protofusion">irc.ohnopub.net#protofusion</a> and speak to <tt>ohnobinki</tt> or <tt>normaldotcom</tt>.</p><h6>Image credit: <a
href="http://www.flickr.com/star6" target="_blank">star6</a>. Used under Creative Commons <a
rel="license" href="http://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA 2.0</a></h6> ]]></content:encoded> <wfw:commentRss>http://protofusion.org/wordpress/2009/12/insurgency-access-your-linux-box-from-anywhere/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 329/329 objects using disk: basic
Content Delivery Network via Amazon Web Services: S3: pf-wordpress.s3.amazonaws.com

Served from: protofusion.org @ 2012-05-22 08:53:48 -->
