I have configured my proxy chains in /etc/proxychains.conf. Then when just run nmap or even nc without the proxychains prefix, it automatically uses the proxy chains and routes the traffic through the proxies. I have verified that there are no alias for both the commands. Is this the expected behaviour? Does Nmap checks the /etc/proxychains.conf automatically?


1 Answer 1


I have figured it out. Basically when I have the environment variable LD_PRELOAD set in the shell (export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.3), the Nmap automatically uses the proxychains. Otherwise it behaves normally.

  • 1
    Yes, that's what LD_PRELOAD is designed to do
    – user163495
    Commented Jul 14, 2021 at 14:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .