美文网首页
全局代理工具 proxychains

全局代理工具 proxychains

作者: 薄荷盐 | 来源:发表于2022-11-12 17:04 被阅读0次

ProxyChains 遵循GNU协议的一款适用于linux系统的网络代理设置工具。强制由任一程序发起的TCP连接请求必须通过诸如TOR 或 SOCKS4, SOCKS5 或HTTP(S) 代理。支持的认证方式包括:SOCKS4/5的用户/密码认证,HTTP的基本认证。允许TCP和DNS通过代理隧道,并且可配置多个代理。
这是主要介绍 proxychains-ng,是 proxychains 的增强版。
项目地址:https://github.com/rofl0r/proxychains-ng

安装部署

下载最新版:proxychains-ng-4.16.tar.xz

编译安装

# 解压
tar xf proxychains-ng-4.16.tar.xz &&  cd proxychains-ng-4.16
./configure --prefix=/usr --sysconfdir=/etc
make && make install
# 安装proxychains.conf配置文件
make install-config

修改配置

/etc/proxychains.conf

# 找到 [ProxyList],在其后面添加代码服务器配置:
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks5 172.18.0.17 9253

使用

telnet 测试

[root@VM-1-11-centos ~]# telnet cip.cc 80
Trying 81.68.78.216...
[root@VM-1-11-centos ~]# proxychains4 telnet cip.cc 80
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.16
Trying 224.0.0.1...
[proxychains] Strict chain  ...  172.18.0.17:9253  ...  cip.cc:80  ...  OK
Connected to cip.cc.
Escape character is '^]'.
^CConnection closed by foreign host.

curl 测试

[root@VM-1-11-centos ~]# curl cip.cc
^C
[root@VM-1-11-centos ~]# proxychains4 curl cip.cc
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] Strict chain  ...  172.18.0.17:9253  ...  cip.cc:80  ...  OK
IP  : 43.138.26.1
URL : http://www.cip.cc/43.138.26.1

排除内网流量

## Exclude connections to 192.168.1.0/24 with port 80
# localnet 192.168.1.0:80/255.255.255.0
## Exclude connections to 192.168.100.0/24
# localnet 192.168.100.0/255.255.255.0
localnet 172.18.1.0/255.255.255.0
## Exclude connections to ANYwhere with port 80
# localnet 0.0.0.0:80/0.0.0.0
# localnet [::]:80/0

相关文章

  • 全局代理工具 proxychains

    ProxyChains 遵循GNU协议的一款适用于linux系统的网络代理设置工具。强制由任一程序发起的TCP连接...

  • mac os10.11上使用proxychains

    使用brew安装proxychainsbrew install proxychains-ng 开启科学上网的代理,...

  • Proxychains笔记

    背景 使用 Ubuntu,想在终端使用代理服务器,改了系统代理却没丝毫影响?试看看 Proxychains 吧~ ...

  • 代理利器ProxyChains 使用方法(结合Shawdowso

    ​ProxyChains是本人目前为止用到的最方便的代理工具,使用十分简单。 在源里有这个软件,直接安装 启动Sh...

  • 终端代理设置

    环境 Ubuntu 14.04 工具 proxychains 安装 sudo apt-get install pr...

  • git设置代理

    设置全局代理 取消全局代理 设置单独github代理

  • 用proxychains-ng为程序设置代理

    我使用homebrew安装 参考链接: 用proxychains-ng为程序设置代理 一、源码,编译、安装 lin...

  • macbook proxychains 不能代理curl问题

    由于proxychains 不能代理curlSip保护的目录 如curl 再/usr/bin目录下,可以考虑复制到...

  • zsh 启动代理

    有时候需要在命令行中或者全局使用代理工具,假定代理工具的命令行指令如下: 那么我们可以在~/.zshrc的文件后面...

  • 终端常用命令

    终端设置全局代理 终端取消全局代理 查看是否还存在代理 PS : 清空代理需要重新打开 terminal

网友评论

      本文标题:全局代理工具 proxychains

      本文链接:https://www.haomeiwen.com/subject/wkifxdtx.html