In any case this is what you have to do, I’m assuming that you’ve already flashed your router with the new firmware and are ready to go:
- Open the DD-WRT administration page and enter your password.
- Click the tab that says “Administration”
- Click the sub-tab called “Management”
- In the Management tab look for the item that says “Remote Access”, inside the box you’ll see “SSH Management”, select “Enabled”
- Change the SSH remote port to something other then “22” otherwise your router will constantly be bombarded by SSH attacks. I suggest something like “2345” or “6543”.
- Click “Save Settings” at the bottom of the page.
- Now Click the sub-tab called “Services”
- Scroll down until you see “Secure Shell”
- In this box you want to “Enable” both “SSHd” and “Password Login”
- Again change the port to whatever you chose before, it should be the same one.
- Click “Save Settings” again.
- Now Click the “Reboot Router” button.
- When it comes back it should be ready.
Now for the PuTTY configuration on the windows side:
- Download the PuTTY client
- Run it
- Type in the Internet address of your router
- Enter the port number you want to connect to (i.e. 2345, 6543, etc…)
- Make sure the SSH radio button is selected.
- On the left, navigate down to Connection >> SSH >> Tunnels
- In the “Source Port” box type in 10000
- In the first set of radio Radio buttons select “Dynamic”
- In the second set make sure “Auto” is selected
- Click the “Add” button
- Scroll all the way back up to “Session” and click it
- Give the session something generic “Router Tunnel” is fine.
- Click “Open” to start the session
- At the username prompt enter “root”, then your router’s password (you changed it from the default, right?)
Ok now the tunnel is ready, now we configure FireFox:
- Download and install FireFox, if you can’t install anything you should get the thumb drive version which doesn’t require installation
- Start Firefox
- Go to “Tools” >> “Options”
- Click the “Advanced” Tab
- Where it says “Configure how firefox connects to…” click the “Settings…” button
- Select the “Manual Proxy Configuration” radio button
- In the “SOCKS Host” box type in “localhost”
- In the port information for the SOCKS Host type in “10000”
- Make sure “Socks v5” radio button is selected
- Clear out the “localhost,127.0.0.1” entries in the “No Proxy for” box
- OK your way back to firefox browser window
Now we need to tunnel DNS lookups as well to keep our own DNS server perstine; so we’ll tell firefox to pump these DNS lookups through the SOCKS proxy:
- In the address bar type “about:config” and hit enter, this will give you FireFox’s configuration guts.
- In the filter type in “dns”, this will cut down the options so you don’t have to go shuffling through a bunch of crap
- Look for the option “network.proxy.socks_remote_dns”
- Double click it so the value changes to “true”
- Hit the home button to now you’re loading your pages through the proxy.
Enjoy!