vibe-coding-cn/assets/skills/proxychains/references/proxychains.conf

80 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Proxychains 配置文件
# 针对本地代理 127.0.0.1:9910 优化
# 代理链模式(三选一)
# ===========================
# strict_chain - 严格按顺序使用所有代理(推荐)
# 所有代理必须在线,任何一个失败则整个链失败
strict_chain
# dynamic_chain - 动态代理链
# 自动跳过离线代理,至少需要一个可用
#dynamic_chain
# random_chain - 随机代理链
# 从列表中随机选择代理
#random_chain
#chain_len = 2 # 随机链长度
# 代理 DNS 请求
# ===========================
# 通过代理服务器解析 DNS避免 DNS 泄漏
proxy_dns
# DNS 解析设置
# ===========================
# remote_dns_subnet - 用于代理 DNS 的虚拟子网
# 默认 224范围 1-255
remote_dns_subnet 224
# 超时设置(毫秒)
# ===========================
# tcp_read_time_out - 读取超时
tcp_read_time_out 15000
# tcp_connect_time_out - 连接超时
tcp_connect_time_out 8000
# 日志设置
# ===========================
# 安静模式(不输出代理链信息)
# quiet_mode
# 代理列表
# ===========================
# 格式type host port [username password]
# 支持类型http, socks4, socks5
#
# 示例:
# http 127.0.0.1 8080 username password
# socks4 127.0.0.1 1080
# socks5 127.0.0.1 1080 username password
[ProxyList]
# 默认本地代理127.0.0.1:9910
http 127.0.0.1 9910
# 备用代理(取消注释以启用)
# ===========================
# http 127.0.0.1 8080
# socks5 127.0.0.1 1080
# 使用说明
# ===========================
# 1. 将此文件保存为:
# ~/.proxychains/proxychains.conf (用户级,推荐)
# /etc/proxychains.conf (系统级)
#
# 2. 测试配置:
# proxychains4 curl https://ipinfo.io/json
#
# 3. 使用示例:
# proxychains4 git clone https://github.com/user/repo.git
# proxychains4 pip install package-name
# proxychains4 npm install package-name
#
# 4. 检查代理服务:
# netstat -tunlp | grep 9910
# curl -x http://127.0.0.1:9910 https://www.google.com