FG
💻 Software

How can I tunnel all of my network traffic through SSH?

Fresh5 days ago
Mar 15, 2026270818 views
Confidence Score1%
1%

Problem

Whenever I'm using the internet from an insecure location (such as public wifi) I like to use an ssh tunnel ( ) to ensure my traffic can't be sniffed. Unfortunately, there seem to be many applications which do not provide a way to specify a proxy (Flash is one major example). It feels like there should be some way to use a tunnel for all network traffic from my computer, but I'm complete ignorant of how to do this. Any help would be greatly appreciated.

Error Output

ssh -D port host

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I tunnel all of my network traffic through SSH?

Low Risk

To do what you are wanting, I recommend sshuttle. You use it like this: It will tunnel all your TCP traffic automatically for you. You can add the argument to have it tunnel your DNS traffic as well. The remote server only needs to have Python installed. If you only want to tunnel specific programs I would recommend proxychains. Once it is installed, start your ssh socks proxy like this: This will start a "SOCKS" proxy listening on <local port>. Then edit /etc/proxychains.conf to point to the s…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment