proxychains icon indicating copy to clipboard operation
proxychains copied to clipboard

firejail defeats proxychains

Open tredondo opened this issue 4 years ago • 1 comments
trafficstars

I have proxychains configured with socks5 10.8.0.1 1080.

This works as expected - wget goes through the proxy:

$ proxychains wget -q github.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.14
[proxychains] Strict chain  ...  10.8.0.1:1080  ...  github.com:443  ...  OK

But by putting firejail in front of wget, it fetches the file, and proxychains doesn't log anything!

$ proxychains firejail wget -q github.com
[proxychains] config file found: /etc/proxychains4.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4

Is that expected? I do see a warning in the README but I can't tell how this applies to firejail.

this program works only on dynamically linked programs. also both proxychains and the program to call must use the same dynamic linker (i.e. same libc)

tredondo avatar Nov 20 '21 19:11 tredondo

Is that expected?

Yes because you can not LD_PRELOAD libraries into SUIDs for security reasons (https://github.com/netblue30/firejail/discussions/4156).

rusty-snake avatar Nov 20 '21 20:11 rusty-snake