From 08bfb880c835784ee4764a2005f7e1fc8caf2cec Mon Sep 17 00:00:00 2001 From: mzz2017 Date: Thu, 22 Oct 2020 22:59:48 +0800 Subject: [PATCH] fix: problem that kubuntu cannot look up domains with enhanced mode on #94 --- service/core/iptables/dropSpoofing.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/core/iptables/dropSpoofing.go b/service/core/iptables/dropSpoofing.go index 2e7f7587..e4024756 100644 --- a/service/core/iptables/dropSpoofing.go +++ b/service/core/iptables/dropSpoofing.go @@ -7,7 +7,8 @@ var DropSpoofing dropSpoofing func (r *dropSpoofing) GetSetupCommands() SetupCommands { commands := ` iptables -N DROP_SPOOFING -BADIP="127.0.0.1 0.0.0.0";for IP in $BADIP ;do hexip=$(printf '%02X ' ${IP//./ }; echo) ;iptables -A DROP_SPOOFING -p udp --sport 53 -m string --algo bm --hex-string "|0004$hexip|" --from 60 --to 180 -j DROP ;done +iptables -A DROP_SPOOFING -p udp --sport 53 -m string --algo bm --hex-string "|00047f000001|" --from 60 --to 180 -j DROP +iptables -A DROP_SPOOFING -p udp --sport 53 -m string --algo bm --hex-string "|000400000000|" --from 60 --to 180 -j DROP iptables -A INPUT -j DROP_SPOOFING iptables -A FORWARD -j DROP_SPOOFING `