牛栏山

一个讨厌CSDN的家伙

导航

终端设置代理

export http_proxy=socks5://192.168.8.249:10808

#linux终端
export http_proxy="http://192.168.130.130:10811"
export https_proxy="http://192.168.130.130:10811"


#windows终端:
set http_proxy=http://192.168.130.130:10811
set https_proxy=http://192.168.130.130:10811


#设置go代理
go env -w GOPROXY=https://goproxy.cn


#设置node代理
npm config set proxy=http://proxy.tencent.com:8080

 

curl走sock5: curl -x socks5h://192.168.130.132:10810 www.baidu.com
nc走sock5: nc -X 5 -x 192.168.130.132:10810 www.qq.com 443
wget走http代理: wget -Y on -e "http_proxy=http://192.168.130.132:10811" www.qq.com
curl指定本地端口: curl --local-port 10999 www.baidu.com (tcpdump port 10999)
nc测试udp能否通: nc -v -u -z -w 3 223.6.6.6 53
发起ping风暴: ping -f
带时间戳的ping: ping -D 114.114.114.114 | awk '{ if(gsub(/\[|\]/, "", $1)) $1=strftime("[%F %T]", $1); print}'
测试网络MTU: ping -l 1457 -f www.163.com

 

优先小写 


UPPER/LOWER curlwgetRubyPythonGo
http_proxy Yes Yes Yes Yes Yes
HTTP_PROXY No No Yes (warning) Yes (if REQUEST_METHOD not in env) Yes
https_proxy Yes Yes Yes Yes Yes
HTTPS_PROXY Yes No Yes Yes Yes

posted on 2022-02-04 16:50  牛栏山  阅读(85)  评论(0编辑  收藏  举报