Proxychains全局代理的安装、配置和应用

Proxychains全局代理的安装、配置和应用

2023年7月20日发(作者:)

Proxychains全局代理的安装、配置和应用

LINUX下可以实现全局代理的软件有tsocks和proxychains等多种,似乎proxychains要更加稳定可靠。

proxychains介绍:

允许TCP和DNS通过代理隧道.

支持HTTP,SOCKS4和SOCKS5代理服务器.

不同的代理类型可以混合在同一个链.

代理链:用户自定义的列表的代理链接在一起.

可以使用proxychains通过代理服务器运行任何程序和通过反向代理访问内部网络

proxychains安装:

yum install proxychains或 RPM安装(需要有专门的rpm包)

采用现成的rpm包安装较为方便。但是经测试,发现该rpm的安装路径有误,需要改正。

/usr/lib64/proxychains/

改为

/usr/lib/proxychains/

只要执行以下命令:

mv/usr/lib64/proxychains /usr/lib

配置文件--

# vim /etc/

全文如下:

# VER 3.1

#

# HTTP, SOCKS4, SOCKS5 tunneling proxifier with DNS.

#

# The option below identifies how the ProxyList is treated.

# only one option should be uncommented at time,

# otherwise the last appearing option will be accepted

#

#dynamic_chain

# # Dynamic - Each connection will be done via chained proxies

# all proxies chained in the order as they appear in the list

# at least one proxy must be online to play in chain

# (dead proxies are skipped)

# otherwise EINTR is returned to the app

#

strict_chain

#

# Strict - Each connection will be done via chained proxies

# all proxies chained in the order as they appear in the list

# all proxies must be online to play in chain

# otherwise EINTR is returned to the app

#

#random_chain

#

# Random - Each connection will be done via random proxy

# (or proxy chain, see chain_len) from the list.

# this option is good to test your IDS :)

# Make sense only if random_chain

#chain_len = 2

# Quiet mode (no output from library)

#quiet_mode

# Proxy DNS requests - no leak for DNS data

proxy_dns

# Some timeouts in milliseconds

tcp_read_time_out 15000

tcp_connect_time_out 8000

# ProxyList format

# type host port [user pass]

# (values separated by 'tab' or 'blank')

#

# Examples:

# # socks5 192.168.67.78

#

#

#

#

http 192.168.89.3

socks4 192.168.1.49

192.168.39.93

1080

8080

1080

lamer secret

justu hidden

http 8080

# proxy types: http, socks4, socks5

# ( auth types supported: "basic"-http "user/pass"-socks )

#

[ProxyList]

# add proxy here ...

# meanwile

# defaults set to "tor"

socks4 127.0.0.1 9050

配置文件修改如下:

有三个链:

dynamic_chain

strict_chain

random_chain

默认选择是strict_chain,也可选 dynamic_chain,或random_chain,但含义不一样的。三个链中只能选择一个。

然后在最后的[ProxyList]下面添加需要的代理信息:

socks5 192.168.169.1 1080 username password

以上语句的意思是:socks5代理服务器的地址、端口、用户名、密码)

一个配置例子:

strict_chain

proxy_dns

tcp_read_time_out 15000

tcp_connect_time_out 8000

socks4 192.168.2.1

socks5 10.9.17.96

按照顺序执行,可以多个代理组成一条链。

1080

1080

alus asb#2345 socks5 135.251.134.71 1080 详细的配置说明列表:

属性

dynamic_chain

说明

按照列表中出现的代理服务器的先后顺序组成一条链,如果有代理服务器失效,则自动将其排除,但至少要有一个是有效的。

strict_chain

按照后面列表中出现的代理服务器的先后顺序组成一条链,要求所有的代理服务器都是有效的。

列表中的任何一个代理服务器都可能被选择使random_chain

proxy_dns

ProxyList

用,这种方式很适合网络扫描操作(参数chain_len只对random_chain有效)。

代理dns请求

添加代理列表,如http、socks4/5、auth

user/pass

默认开启

默认

默认#未开启

默认开启

默认#未开启

配置

其他未说明的默认即可,这样就配置好了。

proxychains使用

运行的时候只要输入:

proxychains

例如:

proxychainsfirefox

即可弹出浏览器窗口,这时的浏览器是通过socks5代理的。

发布者:admin,转转请注明出处:http://www.yc00.com/news/1689812813a288262.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信