rofl0r / proxychains-ng

proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.
http://sourceforge.net/projects/proxychains-ng/files
GNU General Public License v2.0
9.81k stars 1.08k forks source link

Unable to use with yay and AUR #522

Closed Seraphli closed 1 year ago

Seraphli commented 1 year ago
~ ❯ proxychains yay -Syu                                                                                                                        ✘ INT 31s 22:40:13
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.16
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
 -> 1 error occurred:
        * request failed: Get "https://aur.archlinux.org/rpc?arg%5B%5D=activitywatch-bin&arg%5B%5D=chatgpt-desktop-bin&arg%5B%5D=clash-for-windows-bin&arg%5B%5D=debtap&arg%5B%5D=deepin-wine-helper&arg%5B%5D=deepin-wine-wechat&arg%5B%5D=deepin-wine6-stable&arg%5B%5D=electerm-bin&arg%5B%5D=electron21&arg%5B%5D=fcitx-sogoupinyin&arg%5B%5D=feishu-bin&arg%5B%5D=google-chrome&arg%5B%5D=juliaup&arg%5B%5D=lib32-libwrap&arg%5B%5D=lib32-udis86-git&arg%5B%5D=libqtshadowsocks&arg%5B%5D=libsidplay&arg%5B%5D=libwrap&arg%5B%5D=openframeworks&arg%5B%5D=pplink&arg%5B%5D=proton-caller&arg%5B%5D=shadowsocks-qt5&arg%5B%5D=sublime-text&arg%5B%5D=sunloginclient&arg%5B%5D=systemd-fsck-silent&arg%5B%5D=tcping-git&arg%5B%5D=todesk&arg%5B%5D=ttf-ms-fonts&arg%5B%5D=ttf-wps-fonts&arg%5B%5D=visual-studio-code-bin&arg%5B%5D=watt-toolkit-bin&arg%5B%5D=zotero-bin&type=info&v=5": dial tcp 224.0.0.1:443: connect: network is unreachable

I tried proxy_dns and proxy_dns_daemon but both ways are not working.

rofl0r commented 1 year ago

i don't know yay. maybe it's written in an unsupported language, maybe it's suid root executable and dynlinker interferes for security reasons, maybe it starts subprocesses that clear the environment variables. any of those points prevent proxychains-ng from working.

Seraphli commented 1 year ago

I found the solution. https://github.com/Jguer/yay/issues/951

FYI, using gcc-go to recompile is not working. However, recompiling from the source solves this problem.