Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sshuttle

It is perfect util if you want to forward traffic through ssh tunnel without pain.

Install:

$ pip install sshuttle

Tips:

  • Run as daemon and forward traffic for 192.168.10.0/16 subnet though ssh host
# Require `root` permission

# sshuttle -r <user>@<host> 192.168.10.0/16 --daemon

How it works underhood

Util sshuttle create iptables rules in different tables and linux kernel operate next steps.