Ugh. Linux has this shiny feature called network namespaces. Tor Browser should run in a network namespace such that it has no access to the Internet and doesn't know it's real IP address in the first place and therefore can't have this kind of leak barring a code execution attack and a sandbox break.
What's the advantage over just using iptables? -A OUTPUT -m owner --uid-owner [Tor uid] -j ACCEPT -A OUTPUT -j DROP
Network namespaces are much cleaner and can be created and destroyed without risk to other networking rules.