What is the simplest way to identify and block all non-tor network traffic on GNU/Linux?
I assume the most effective way would be some kind of iptables rule to distinguish between tor and non-tor traffic and block the latter.
(I know that one possibility would be to run the tor binary as a dedicated user, and block the network traffic of all other users, but this wouldn't work for the Tor Browser use case).
Note that I am not talking about automatically tunneling all network traffic through tor.