LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-30-2020, 11:50 AM   #46
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053

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 View Post
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.
 
Old 12-31-2020, 11:17 AM   #47
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

Original Poster
Rep: Reputation: Disabled
Hello ondoho,

how nice of you to inform me of your latest findings. Thanks a lot.

Quote:
First of all, I don't think the problem ever had anything to do with installing torsocks outside of the distro's package management.
Fine. Thatīs good to know.

Quote:
torsocks OTOH is a handy, quick solution, but its downside is that it does not always work, esp. with GUI applications.
Yes, that coincides with my experience of certain GUI applications.

Thanks for providing the link.

In the meantime Iīm on Lubuntu bionic and donīt have torsocks any longer on the system.
In a few monthsī time (next April) Iīll have to do a fresh/clean install as bionic for Lubuntu will reach EOL.
Perhaps Iīm giving it a new try then or experiment within a VM.

Thanks again for all your help.Itīs highly appreciated.

All the best for the New Year.
Rosika
 
Old 12-31-2020, 02:18 PM   #48
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Yeah, Guten Rutsch!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I using the torsocks with curl. P.G.Krish Linux - Security 4 07-11-2016 12:16 AM
Hibernate not working properly. hack3rcon Linux - Software 5 02-25-2016 03:35 AM
Using Torsocks to hide the i.p. address question(s) Michael Piziak Linux - Software 8 02-14-2016 01:20 PM
dhcpd not working properly bwarsh Linux - Networking 1 08-15-2005 04:24 PM
X not working properly. MylesCLin Linux - Software 1 09-15-2004 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration