Hardware Reference
In-Depth Information
The previous example can be applied to any situation where you need to reach
something on a single TCP port on your home network.
However, there are situations in which you don't know in advance all the
destination addresses that you'll want to reach. When evading content filtering
or web censorship for example, you'll want to send all HTTP requests through the
SSH tunnel. Fortunately SSH can act as a
SOCKS proxy
where it will tunnel traffic
to and from any address that you specify in your web browser.
Follow this procedure to enable the SOCKS proxy support:
1. Start PuTTY and select
Connection
, then
SSH
, then
Tunnels
from the
Category
tree on the left.
2. In the
Source port
field, enter any port number above
1024
that you think is
available on the local Windows machine.
3. Leave
Destination field
blank and select the
Dynamic
radio button, then
click on
Add
.
4. Now select
Session
from the
Category
tree on the left and log in to your Pi
like you usually would. The tunnel is being set up in the background.
5. Finally, you need to configure your browser to use a SOCKS proxy. The
procedure differs slightly between browsers. Both Chrome and Internet
Explorer use the system wide proxy settings, which can be found in
Internet
Options
in
Control Panel
.
6. Under the
Connections
tab, click on
LAN settings
. Check
Use a proxy server
for your LAN
and click on the
Advanced
button.
7. Make sure all the fields are cleared, then enter
localhost : [localport]
in the
Socks
field, but replace
[localport]
with the number you chose in
step 2.
8.
Now you can verify that you're connecting from your home IP address by