如何正确配置代理链?

如何正确配置代理链?

我使用的是 Kali 2020.4。 Proxychains 在 2020.2 版本上对我有用,但从 2020.3 版本开始就不行了。在终端上,当我使用它时proxychains firefox,它会通过显示此内容立即终止。


┌──(sohan㉿kali)-[~]
└─$ proxychains firefox www.google.com
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.14
[proxychains] DLL init: proxychains-ng 4.14
[proxychains] DLL init: proxychains-ng 4.14
                                                                                                                                                                      
┌──(sohan㉿kali)-[~]
└─$

我在 Parrot OS 中执行了相同的步骤,并且它的工作原理。在卡利这里,我找不到问题所在。这是我的 proxychains.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 :)

# 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   1080    lamer   secret
#       http    192.168.89.3    8080    justu   hidden
#       socks4  192.168.1.49    1080
#       http    192.168.39.93   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
socks5  127.0.0.1 9050

答案1

请勿在同一端口上使用不同版本的socks4 和socks5。因此,删除配置最底部的一行proxychains.conf

还要检查 tor 是否在端口 9050 上运行:systemctl status tor

你可以按照这个指导

答案2

我遇到了类似的情况,问题是当在另一个窗口中打开另一个 Firefox 示例时我尝试执行该命令。换句话说,请确保当“proxychains firefox”执行时,firefox 已关闭。

答案3

我遇到了类似的问题,但通过使用非 root 用户帐户解决了它。创建另一个用户,登录该用户帐户并再次运行命令

答案4

我也遇到了同样的问题,我发现我打开了firefox,关闭它后就没有问题了

相关内容