前提条件
windows开启代理,关闭防护墙
本地代理使用Clash端口7890
linux互通
添加系统代理
export http_proxy=socks5://192.168.208.107:7890
export https_proxy=socks5://192.168.208.107:7890
export ALL_PROXY=socks5://192.168.208.107:7890
export no_proxy="localhost,127.0.0.1"
获取外网IP
curl https://ip.42.pl/raw
# 或者
curl "http://httpbin.org/get" |jq .origin|sed 's/\"//g'
取消代理
export http_proxy=""
export https_proxy=""
export ALL_PROXY=""