How come some programs will refuse to work with (e.g torsocks ./program-binary) while the same program will work work with (e.g proxychains ./program-appimage) with sock5 127.0.0.1 and proxy_dns set?
Is there a consensus or rather a certain programming lang that has issues with torsocks. I was told that electron based programs are known to. Are they the only ones or is there some other ones?
I’m under the belief that launching programs with torsocks or proxychains is better then relying on a apps native proxy support do to seeing programs try to make non proxy connections.
The underlying way torsocks and proxychains works are the same: they hook network-related calls in libc (known as “LD_PRELOAD trick”) and tunnel network accesses through user-configured proxy servers. I don’t know how comes some programs don’t work with torsocks but work fine with proxychains.
Some programming languages and/or programs (binaries) have problem with the LD_PRELOAD trick because they don’t use libc and/or are statically linked. Go is a prime example of this. For those programs, you can use Linux Transproxy, VM-based solution (like Whonix), Tails or Linux network namespace-based solution (like oniux).