From 5ee2affd4b4d667a6a0d7080a82dc8c01f1d9819 Mon Sep 17 00:00:00 2001 From: Affif Mukhlashin Date: Mon, 16 Apr 2018 13:56:48 +0700 Subject: [PATCH] create nat for ipv6 --- common/service.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/service.sh b/common/service.sh index 7fabb9d..bc62022 100755 --- a/common/service.sh +++ b/common/service.sh @@ -14,6 +14,8 @@ for i in 1 2 3 4 5 6 7 8 9 10 11 12; do sleep 15 iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination 127.0.0.1:5354 iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 127.0.0.1:5354 + ip6tables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to-destination [::1]:5354 + ip6tables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination [::1]:5354 break; else sleep 5