    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>Nomoa.com :: Winding through &amp;ndash; ssh tunnels</title>
        <link>http://www.nomoa.com/news/Winding_through_%26ndash%3B_ssh_tunnels</link>
        <description>Paving the way for .NET in Tonga</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Administrator</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.xaraya.org" /> 
        <admin:errorReportsTo rdf:resource="mailto:samt@ants.to" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>

<!-- show a link to all publication types -->
Publication :
                <a href="http://www.nomoa.com/news/">News Articles</a>
        (1787)
     -             <a href="http://www.nomoa.com/pictures/">Pictures</a>
        (262)
     -             <a href="http://www.nomoa.com/weblinks/">Web Links</a>
        (40)
     -             <a href="http://www.nomoa.com/articles/downloads/">Downloads</a>
        (15)


<div class="xar-mod-head"><span class="xar-mod-title">Mind Dumps Go Here + OpenBSD</span></div>

<table border="0" cellpadding="1" cellspacing="0">
<tr>
    <td valign="top">
        Browse in :
   </td>
   <td valign="top">

                                    <a href="http://www.nomoa.com/news/">All</a>

                 &gt;                     <a href="http://www.nomoa.com/news/c1/">Soap Box</a>
<br />

                                    <a href="http://www.nomoa.com/news/">All</a>

                 &gt;                     <a href="http://www.nomoa.com/news/c1/">Soap Box</a>

                 &gt;                     <a href="http://www.nomoa.com/news/c6/">OpenBSD</a>
<br />

                                    <a href="http://www.nomoa.com/news/c1-6/">Any of these categories</a>

                -                    <a href="http://www.nomoa.com/news/c1+6/">All of these categories</a>
<br />
</td>
</tr>
</table>






<div class="xar-norm-outline xar-standard-box-padding xar-overflow-auto">
    <h1>Winding through &ndash; ssh tunnels    </h1>
    <div class="xar-floatright"><a href="http://www.nomoa.com/news/c1/"><img src="modules/categories/xarimages/soapbox.gif" alt="Soap Box" /></a></div>
   <div class="xar-sub">
Posted by: 
            <a href="http://www.nomoa.com/roles/7">Samiuela LV Taufa</a> on August 15, 2008 3:49:09 AM (3174 Reads)    </div>
    <div><p></p>  <p>Avoided it for a couple of hours, but after looking it up it wasn’t that hard after all.</p>  <blockquote>   <p>Summary:</p>    <p>I needed to connect to a client’s broadband modem to do some maintenance. Unfortunately we’ve set the client up such that administrating the modem is only possible ‘from inside’ the client’s side of the cable modem. </p>    <p>The 2nd problem is that the modem is administered through a web interface so the question is, how can I securely get Internet Explorer to connect through a machine on the inside back to this modem ?</p>    <p>In fact, only one machine on the network can access the modem.</p> </blockquote>  <p>I was side-tracked with another problem using tunnels, but the solution for this particular scenario was relatively simple.</p>  <p>&#160;</p>  <blockquote>   <p>ssh –L local-port:modem-ip:modem-port internal-host</p> </blockquote>  <p>local-port is the port on my local machine that I will point the browser to (for example: <a href="http://localhost:local-port">http://localhost:local-port</a>)</p>  <p>modem-ip is the IP address for the modem, from the internal-host. For example, a non-routeable/private IP address such as 172.16.11.1.</p>  <p>modem-port. The port on the modem where the web interface is listening. For example 80 or 443</p>  <p>internal-host is the Host inside the network to which I can jump to from the outside (usually a machine with a public-ip)</p>  <blockquote>   <p>ssh –L 4321:172.16.11.1:80 host.example.org</p> </blockquote>  <p>I can access the modem by starting up Internet Explorer and using the address <a href="http://localhost:4321">http://localhost:4321</a></p>  <blockquote>   <p>ssh –L 4322:172.16.11.1:443 host.example.org</p> </blockquote>  <p>I can now access the SSL secured interface by using the address <a href="https://localhost:4322">https://localhost:4322</a></p>  <p>Using the above scenario you can supposedly daisy-chain (connect from one server to the next) by having multiple terminals making one link to the next.</p>  <p>There’s also some ssh fu where you can chain from one machine to the next to the next on a single command-line, but we’ll leave that for another day.</p></div>
    <div></div>
</div>
<div class="xar-normal xar-overflow-auto">
        <a class="xar-floatleft" href="http://www.nomoa.com/news/Formatting_your_Disk_may_just_be_the_solution">&lt;
prev</a>&#160;            <a class="xar-floatright" href="http://www.nomoa.com/news/Blogging_vs_Journalism">
next&gt;</a>
</div>




<p>
There are no comments attached to this item.</p>
<script type="text/javascript" src="modules/base/xartemplates/includes/submitonce.js"></script>
<dl class="xar-tabs">
       <dt class="help">
Options:
       </dt>
            <dd>
                <a href="http://www.nomoa.com/news/map/">
                    View Article Map               </a>
           </dd>
            <dd>
                <a href="http://www.nomoa.com/news/archive/">
                    View Archives               </a>
           </dd>
</dl>
</channel>
</rss>
