Sample Header Ad - 728x90

How to block all outbound traffic except Tor

1 vote
2 answers
1176 views
I have tried to use these rules with iptables but after I have used same rules in ip6tables, it has blocked everything. Why do my ip6tables rules block everything?
iptables -F OUTPUT
iptables -A OUTPUT -j ACCEPT -m owner --uid-owner debian-tor
iptables -A OUTPUT -j ACCEPT -o lo
iptables -P OUTPUT DROP


ip6tables -F OUTPUT
ip6tables -A OUTPUT -j ACCEPT -m owner --uid-owner debian-tor
ip6tables -A OUTPUT -j ACCEPT -o lo
ip6tables -P OUTPUT DROP
Asked by Bulcsú Édes (19 rep)
Feb 14, 2023, 12:17 AM
Last activity: Feb 16, 2023, 04:07 AM