tunnel all of my network traffic through SSH

As far as I know, sshuttle is the only program that solves my problems

Installation

pip install sshuttle

Run

sshuttle -D \
  -r root@1.2.3.4 \
  --dns \
  --exclude=192.168.0.0/24 \
  0.0.0.0/0

Test

# docker pull k8s.gcr.io/pause:3.1
3.1: Pulling from pause
67ddbfb20a22: Pull complete
Digest: sha256:f78411e19d84a252e53bff71a4407a5686c46983a2c2eeed83929b888179acea
Status: Downloaded newer image for k8s.gcr.io/pause:3.1

bingo!!

推荐阅读更多精彩内容