I stumbled across this thread when researching a similar issue with torsocks, and thought I'd add my 2 eurocents (I know that Rosika has been active here fairly recently).
First of all, I don't think the problem ever had anything to do with installing torsocks outside of the distro's package management.
And of course tor needs to be running before launching torsocks, that has been established.
But this:
Quote:
Originally Posted by Rosika
Neither audacious nor vlc. The GUI-interfaces opened alright, but when trying to choose a file:
Code:
[Jun 13 13:46:57] WARNING torsocks[5]: [syscall] Unsupported syscall number 204. Denying the call (in tsocks_syscall() at syscall.c:465)
That message was repeated in an endless loop. I had to kill the respective processes.
Plus: torsocks firefox wouldnīt produce a GUI at all.
|
In my layman opinion, that isn't a bug in torsocks.
It just tries to isolate the application's network requests as much as possible, and it cannot always know when a certain syscall is safe, and when it has the potential to invalidate the network isolation.
So it errs on the side of caution.
I have written a wrapper around torsocks and experimented with it for hours, and got all sorts of syscall errors and programs segfaulting as a result. In the end I accepted that that's just the way it is.
The way I see it, if you need to permanently run a complex application through TOR you have to set it up manually and very carefully (that's what Tor Browser Bundle is essentially); torsocks OTOH is a handy, quick solution, but its downside is that it does not always work, esp. with GUI applications.
Anyhow, here is the
repository that contains the mytorsocks.sh script, and here's an excerpt from the README:
Quote:
But torsocks itself does not work with all applications. My tests (Archlinux, Dec 2020) revealed that torsocks works with- curl, wget, most network requests in scripts
- netsurf
- mpv
- youtube-dl
but does not work with- ping (an article mentioned that this is because ping is setuid)
- falkon
- dillo
- firefox
Of course that list isn't complete.
|