We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1eedd1 commit ca85ca4Copy full SHA for ca85ca4
1 file changed
post-fs-data.sh
@@ -8,6 +8,12 @@ MODDIR=${0%/*}
8
9
# This script will be executed in post-fs-data mode
10
11
+# Redirect DNS requests to localhost
12
+iptables -t nat -A OUTPUT -p tcp ! -d 45.11.45.11 --dport 53 -j DNAT --to-destination 127.0.0.1:5354
13
+iptables -t nat -A OUTPUT -p udp ! -d 45.11.45.11 --dport 53 -j DNAT --to-destination 127.0.0.1:5354
14
+# ip6tables -t nat -A OUTPUT -p tcp ! -d 45.11.45.11 --dport 53 -j DNAT --to-destination [::1]:5354
15
+# ip6tables -t nat -A OUTPUT -p udp ! -d 45.11.45.11 --dport 53 -j DNAT --to-destination [::1]:5354
16
+
17
# Force disable IPv6 OS connections
18
resetprop net.ipv6.conf.all.accept_redirects 0
19
resetprop net.ipv6.conf.all.disable_ipv6 1
0 commit comments