1、安装
sudo apt install proxychains4
2、配置
找到/etc/proxychains4.conf
文件进行修改
sudo vim /etc/proxychains4.conf
文件打开后出现如下页面
# proxychains.conf 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 :)
将proxychains4.conf文件中的dynamic_chain前面的注释符'#'取消,在strict_chain前面加上注释符'#',如下所示:
#
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
#
下翻到最后一行,修改代理设置即可,如下所示:
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks5 192.168.56.1 1080
保存并退出
proxychains4 打开火狐:
sudo proxychains4 firefox
代理成功