mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-03 19:39:19 +01:00
Make DropDNSrep an inline action
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cecb8a1950
commit
8bc70674f3
10
Shorewall/Actions/action.DropDNSrep
Normal file
10
Shorewall/Actions/action.DropDNSrep
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#
|
||||||
|
# Shorewall -- /usr/share/shorewall/action.DropDNSrep
|
||||||
|
#
|
||||||
|
# This macro silently drops DNS UDP replies that are in the New state
|
||||||
|
#
|
||||||
|
###############################################################################
|
||||||
|
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER
|
||||||
|
|
||||||
|
DEFAULTS DROP
|
||||||
|
@1 - - udp - 53 { comment="Late DNS Replies" }
|
@ -1,12 +0,0 @@
|
|||||||
#
|
|
||||||
# Shorewall -- /usr/share/shorewall/macro.DropDNSrep
|
|
||||||
#
|
|
||||||
# This macro silently drops DNS UDP replies
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER
|
|
||||||
|
|
||||||
?COMMENT Late DNS Replies
|
|
||||||
|
|
||||||
DEFAULT DROP
|
|
||||||
PARAM - - udp - 53
|
|
@ -31,6 +31,7 @@ Broadcast noinline,audit # Handles Broadcast/Multicast/Anycast
|
|||||||
DNSAmp # Matches one-question recursive DNS queries
|
DNSAmp # Matches one-question recursive DNS queries
|
||||||
Drop # Default Action for DROP policy
|
Drop # Default Action for DROP policy
|
||||||
dropInvalid inline # Drops packets in the INVALID conntrack state
|
dropInvalid inline # Drops packets in the INVALID conntrack state
|
||||||
|
DropDNSrep inline # Drops DNS replies
|
||||||
DropSmurfs noinline # Drop smurf packets
|
DropSmurfs noinline # Drop smurf packets
|
||||||
Established inline,\ # Handles packets in the ESTABLISHED state
|
Established inline,\ # Handles packets in the ESTABLISHED state
|
||||||
state=ESTABLISHED #
|
state=ESTABLISHED #
|
||||||
|
Loading…
Reference in New Issue
Block a user