diff --git a/tor-route-all-traffic.sh b/tor-route-all-traffic.sh index c8218eb..36be5a4 100644 --- a/tor-route-all-traffic.sh +++ b/tor-route-all-traffic.sh @@ -40,6 +40,10 @@ _tor_uid="$(docker exec $_tor_container id -u tor)" _trans_port="9040" _dns_port="5353" +### disable ipv6 +sysctl -qw net.ipv6.conf.default.disable_ipv6=1 +sysctl -qw net.ipv6.conf.all.disable_ipv6=1 + ### flush iptables iptables -F iptables -t nat -F @@ -64,4 +68,4 @@ iptables -t nat -A OUTPUT -p tcp --syn -j REDIRECT --to-ports $_trans_port ### allow only tor output iptables -A OUTPUT -m owner --uid-owner $_tor_uid -j ACCEPT -iptables -A OUTPUT -j REJECT \ No newline at end of file +iptables -A OUTPUT -j REJECT