From 608312fb8fd91fd39eb5205b89ac7797b2b36689 Mon Sep 17 00:00:00 2001 From: mzz2017 Date: Fri, 23 Oct 2020 22:27:03 +0800 Subject: [PATCH] optimize(dropSpoofing): filter 127.0.0.0/8 --- service/core/iptables/dropSpoofing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/core/iptables/dropSpoofing.go b/service/core/iptables/dropSpoofing.go index e4024756..5f281550 100644 --- a/service/core/iptables/dropSpoofing.go +++ b/service/core/iptables/dropSpoofing.go @@ -7,7 +7,7 @@ var DropSpoofing dropSpoofing func (r *dropSpoofing) GetSetupCommands() SetupCommands { commands := ` iptables -N DROP_SPOOFING -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 "|00047f|" --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