<?php include 'HEADER.php'; ?>

<h1>SSH tunnels</h1>

<p>If you need to web browse securely on an untrusted network or you're behind an overly restrictive web filter, use an SSH tunnel.</p>

<pre class="prettyprint">
ssh -fND localhost:8080 me@my_remote_host.com
</pre>

<p>That brings up the tunnel. Any traffic to port 8080 on your local machine will go down a secure SSH tunnel to your remote host. To bring down the tunnel, just kill the SSH process.</p>

<p>To get Firefox to use the tunnel, go to <b>Edit</b> &rarr; <b>Preferences</b> &rarr; <b>Advanced</b> &rarr; <b>Network</b> &rarr; <b>Settings</b>. Select <b>Manual proxy configuration</b>. Set <b>Socks host</b> to 'localhost' and the PORT to '8080'.</p>

<p>You may also want to send your domain name lookups over the tunnel. Enter 'about:config' in the Firefox URL field. Find 'network.proxy.socks_remote_dns' and toggle it to 'true'.</p>

<?php include '../FOOTER.php'; ?>
