How to force ubuntu to access the internet over tor?

I want to force ubuntu 22.04 to access the internet over tor. No internet access but over tor. How would you go about the matter?
I investigated the matter. parrotsec org, kodachi and torbox ch claim they have provided solutions. There is also something called toriptables2. And a lot more.
About parrotsec org it appears the software in question is anonsurf.
https://gitlab.com/parrotsec/packages/anonsurf
What are your suggestions? Thanks.

Sounds like you are going way over the top here. All I did was to delete all browsers and mail progs. except tor.

Then you still have traffic happening that’s not on the Tor network.

I would argue trying to force everything on Tor is a bad idea. Even the developers of Tor don’t recommend it for all applications. There are ways to take individual applications and run them through Tor. That’s what I would suggest: selectively picking and choosing applications.

If you’re paranoid about which applications you don’t know are sending traffic, you can analyze your network traffic.

1 Like

What traffic? The only other traffic that happens is background updates for system stuff as you won’t be using chrome or have a google/meta/instagram etc. account .
If you are curious use something like wireshark to sniff out what traffic is happening. Most will just be for your local intranet, printers etc. Presumably you have disabled all unattended upgrades and the like.

What are your goals?

To surf the internet anonymously? Consider TAILS.

To use an operating system with persistence that leaves no tracks on the host? Consider Whonix.

I would be very wary about trying to do what you seem to want to do.

One mistake, one wrong command and you destroy your entire system.

Unless you have extremely solid backups and do not mind reinstalling, not a good idea in my opinion.

2 Likes

Which is traffic nonetheless. Depending on OP’s requirements, that may not be acceptable.

Maybe, but I really don’t see why, that stuff is innocuous enough, but @rubi1200 idea of using an USB Tails with persistence is an excellent suggestion.

1 Like

I don’t either, but that doesn’t stop people from wanting it regardless.

Yep, nowt so queer as folks…

My preferred solution would be a program that by default would stop any data transfer from or to the internet. And log any program trying to access the internet. You would then get the option to grant or deny internet access for a given program. Or configure it to access the internet over tor. I have not found such a program. If it is a matter of configuring ufw or iptables is there documentation?

No I cannot. I am not skilled enough. I looked into wireshark. It was to complicated. And I found no usable tutorials.

If you’re looking for something that easy, @rubi1200 is correct: use Tails.

1 Like

Perhaps this would meet your needs?

If it was me, I would only be testing on either a test laptop or in a VM before committing any types of changes to the main system.

This topic was automatically closed after 30 days. New replies are no longer allowed.