Proxychains 不适用于浏览器(Chromium、Firefox),但适用于 curl

proxychains does not work with browsers (chromium, firefox) but work with curl

提问人:Nikolay Tverdokhlebov 提问时间:7/1/2023 更新时间:7/1/2023 访问量:652

问:

我正在尝试配置 proxychains4 以运行浏览器。

sudo apt update && sudo apt install proxychains4 tor- 安装软件包(也尝试从存储库制作)

sudo nano /etc/proxychains4.conf- 打开配置。依次尝试严格、动态round_robin模式。 在文件末尾,在我删除默认的 socks4 代理后,立即以格式添加了 socks4 代理。socks5 176.103.xx.xx 29xxx username password

sudo systemctl start tor.service- 启动 Tor

sudo systemctl status tor.service- 检查 Tor 是否正在运行

~$ sudo systemctl status tor.service
● tor.service - Anonymizing overlay network for TCP (multi-instance-master)
     Loaded: loaded (/lib/systemd/system/tor.service; enabled; preset: enabled)
     Active: active (exited) since Sat 2023-07-01 10:26:33 +06; 1h 13min ago
    Process: 1059 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 1059 (code=exited, status=0/SUCCESS)
        CPU: 1msssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

proxychains4 curl ifconfig.co/country- 检查代理链是否有效。我希望看到乌克兰,因为代理服务器放置在哈尔科夫。

~$ proxychains4 curl ifconfig.co/country
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] Dynamic chain  ...  127.0.0.1:9050  ...  176.103.60.33:29443  ...  ifconfig.co:80  ...  OK
Ukraine

一切都还好,一会儿。

火狐浏览器

proxychains4 firefox dnsleaktest.com运行 Firefox。问题从这里开始

~$ proxychains4 -f /etc/proxychains4.conf firefox dnsleaktest.com
[proxychains] config file found: /etc/proxychains4.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.

浏览器运行成功。但它显示了我在哈萨克斯坦的真实IP地址。在浏览器上冲浪不会在控制台中生成新日志。

~$ proxychains4 -f /etc/proxychains4.conf chromium dnsleaktest.com
[proxychains] config file found: /etc/proxychains4.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] DLL init: proxychains-ng 4.16
Gtk-Message: 11:46:45.877: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
[30511:30511:0701/114645.963070:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled.
WARNING: Kernel has no file descriptor comparison support: Operation not permitted
[30511:30511:0701/114647.303045:ERROR:interface_endpoint_client.cc(697)] Message 0 rejected by interface blink.mojom.WidgetHost
[30511:30605:0701/114648.404437:ERROR:udev_watcher.cc(98)] Failed to begin udev enumeration.
[30637:30637:0701/114713.640413:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

运行 chrome 也很成功,但 ip 是我真正的。但是日志与firefox日志不同。

问题:我应该怎么做才能强制浏览器通过代理链进入互联网?系统信息

  • 已安装的软件包
  • 配置的代理链
  • 已检查它是否适用于卷曲
  • 尝试了几种连锁模式
  • 阅读大量论坛
Ubuntu Firefox Chromium Tor 代理链

评论


答: 暂无答案