banner
DarianBlog

DarianBlog

达里安博客-专注于技术分享与交流的博客。博客致力于创造一个简单而直接的技术学习平台。
email
telegram

ubuntu使用socks代理执行脚本教程

安装 proxychains:sudo apt update && sudo apt install proxychains
编辑配置文件:sudo nano /etc/proxychains.conf,在文件末尾添加你的 SOCKS 代理地址,例如:socks5 127.0.0.1 1080(根据你的代理配置修改)
保存并退出编辑器(Ctrl+O,Enter,Ctrl+X)。

下面是示例代码:

# proxychains.conf  VER 3.1
# HTTP, SOCKS4, SOCKS5 tunneling proxifier with DNS.

# 启用静默模式 - 抑制详细的连接信息输出 [1,6](@ref)
quiet_mode

# Proxy chaining mode [1,4](@ref)
# strict_chain 要求所有代理均在线,dynamic_chain 可跳过失效代理 [1](@ref)
strict_chain

# Disable proxy DNS to avoid resolution issues [1](@ref)
# 如果遇到DNS解析问题,可以尝试取消注释 proxydns,但通常建议注释掉 [1](@ref)
# proxydns

# Timeout settings [1,4](@ref)
tcp_read_time_out 15000
tcp_connect_time_out 8000

# ProxyList format: type host port [user pass] [1,4](@ref)
[ProxyList]
# 按照 type ip port [user pass] 格式每行配置一个代理 [1,4](@ref)
socks5 你的IP 端口 用户名 密码

最后执行命令:proxychains 需要访问的脚本命令,粘贴到后面

加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。