http_proxy可以用socks5来代理 http_proxy=socks5:// go get
ALL_PROXY=”socks5://NNN.NNN.NNN.NNN.PPPP” socks5$curl -x socks5://$curl -so /dev/null -w “%{http_code}” -x socks5://默认在本机解析hostname (socks5h使用proxy 来解决hostname . -x + socks5h = –sock5-hostname) The proxy string can be specified with a protocol:// prefix. No protocol specified or http:// will be treated as HTTP proxy. Use socks4://, socks4a://, socks5:// or socks5h:// to request a specific SOCKS version to be used. (The protocol support was added in curl 7.21.7)–socks5-hostname <host[:port]> Since 7.21.7, this option is superfluous(多余的,不必要的) since you can specify a socks5 hostname proxy with -x, –proxy using a socks5h:// protocol prefix.> Since 7.21.7, this option is superfluous since you can specify a socks5 hostname proxy with -x, –proxy using a socks5h:// protocol prefix.> The little h following the socks5 tells curl to lookup hostnames via proxy too.> ALL_PROXY=”socks5h://NNN.NNN.NNN.NNN.PPPP”> ALL_PROXY=”socks5://NNN.NNN.NNN.NNN.PPPP” git with socks5 proxy config –global http.proxy socks5:// go get go get packageA config –global http.proxy socks5:// go get| | | | // and “socks5” are supported. If the scheme is empty, [2018,201802, homebrew, proxy, socks5] socks5 支持socks5代理$ export ALL_PROXY=socks5://| | IPv6, HTTP(S), SOCKS, socks5 over TLS, DNS via Proxy, Proxy Checker, NTLM, Windows Service, XML Config, Proxy Redundancy. a virtual network interface | socks5 config –global http.proxy socks5:// go get| | | | (2.12.4) 在Windows下使用socks5代理时,出现报错:$ ALL_PROXY=socks5h://ip:port brew install nasm socks5 socks5 [bind_address:]port 指定一个本地动态应用程序级别的端口转发. 原理: 在本地启动一个监听端口, 当有连接进入这个端口时, 连接经由隧道转发, 应用协议决定从远程机器转发到哪个目标地址. -D 使ssh 扮演了 SOCKS 服务器的角色,支持 socks4, socks5 . | -D [bind_address:]port
Specifies a local ``dynamic’’ application-level port forwarding. This works by allocating a socket to listen to port on the local side, optionally bound to the specified bind_address. Whenever a connection is made to this port, the connection is forwarded over the secure channel, and the application protocol is then used to determine where to connect to from the remote machine. Currently the SOCKS4 and SOCKS5 protocols are supported, and ssh will act as a SOCKS server. Only root can forward privileged ports. Dynamic port forwardings can also be specified in the configuration file. “http.proxy” setting no longer allows socks5 proxies和chrome同根同源 不支持 socks5