Skip to content

Instantly share code, notes, and snippets.

@sursir
Last active April 30, 2019 06:38
Show Gist options
  • Save sursir/04a19bf7ceb593109751bf6a1b039169 to your computer and use it in GitHub Desktop.
Save sursir/04a19bf7ceb593109751bf6a1b039169 to your computer and use it in GitHub Desktop.
ssh ssh2socks5 socks5 tunnel proxy
ssh -gN -D 6032 root@HOST
# 本机socks5端口[6032]通过ssh隧道转发
# https://www.maoyuanrun.com/2014/10/05/ssh-l-r-d/
# curl 使用 socks5 作为代理
# https://blog.emacsos.com/use-socks5-proxy-in-curl.html
curl --socks5-hostname H:P DistinHost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment