We have an SSH tunnel (ssh -ND 127.0.0.1:8080 user@example.com
), that works fine for browsers if point them to 127.0.0.1:8080
as socks5 proxy, but other traffic is still not going through this tunnel.
How would i make absolutely all traffic go through SSH tunnel?
Any tools, settings i need for that?
The system i am using is Debian and MacOS so better if solution is more or less general for both platforms.
Best Answer
You can create VPN using ssh. Here is the relevant section from
man ssh
:At the end, you will have tunnel interface which you can use to forward your traffic.