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!!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容