牛栏山

一个讨厌CSDN的家伙

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

终端设置代理

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   牛栏山  阅读(91)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示