ssh 创建socks proxy上内网或者外网的方法
ssh -D -CqNf @ [-p ]
- -D : open a SOCKS proxy on . If that port is taken, try a different port number. If you want to open multiple SOCKS proxies to multiple endpoints, choose a different port for each one.
- -C: compress data in the tunnel, save bandwidth
- -q: quiet mode, don’t output anything locally
- -N: do not execute remote commands, useful for just forwarding ports
- -f: make the command go to background
- @ [-p ]: the remote SSH server you have access to
Use SOCKS proxy in chrome / firefox.