From 2cf967fb811b7fc6966961847b770fe0a01132c3 Mon Sep 17 00:00:00 2001 From: darklem Date: Sun, 15 Oct 2023 12:22:21 +0200 Subject: [PATCH] disable ipv6 in tor-route-all-trafic.sh script --- tor-route-all-traffic.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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