内网终端代理设置
17 April 2023
内网终端代理设置
# 后台执行 socat 端口转发
(socat TCP-LISTEN:15246,reuseaddr,fork TCP:localhost:15236) &
# 设置终端网络代理
export https_proxy=http://10.10.10.4:15246 http_proxy=http://10.10.10.4:15246 all_proxy=http://10.10.10.4:15246
export https_proxy=http://192.168.2.6:15246 http_proxy=http://192.168.2.6:15246 all_proxy=http://192.168.2.6:15246
export https_proxy=http://192.168.100.90:15246 http_proxy=http://192.168.100.90:15246 all_proxy=http://192.168.100.90:15246
export https_proxy=http://192.168.12.237:15246 http_proxy=http://192.168.12.237:15246 all_proxy=http://192.168.12.237:15246
