optimize(dropSpoofing): filter 127.0.0.0/8

This commit is contained in:
mzz2017 committed 2020-10-23 22:27:03 +08:00
1 parent ccf5ee857f
commit 608312fb8f
1 file changed
+1 -1
+1 -1
View File
@@ -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