forked from extern/shorewall_code
30b2b2dcb4
Signed-off-by: Tuomo Soini <tis@foobar.fi>
30 lines
745 B
Plaintext
30 lines
745 B
Plaintext
#
|
|
# Shorewall -- /usr/share/shorewall/action.TCPFlags
|
|
#
|
|
# Drop TCPFlags Action
|
|
#
|
|
# Accepts a single optional parameter:
|
|
#
|
|
# - = Do not Audit
|
|
# audit = Audit dropped packets.
|
|
#
|
|
###############################################################################
|
|
|
|
DEFAULTS -
|
|
|
|
?if passed(@1)
|
|
?if @1 eq 'audit'
|
|
?set tcpflags_action 'A_DROP'
|
|
?else
|
|
?error The parameter to TCPFlags must be 'audit' or '-'
|
|
?endif
|
|
?else
|
|
?set tcpflags_action 'DROP'
|
|
?endif
|
|
|
|
$tcpflags_action - - ;;+ -p 6 --tcp-flags ALL FIN,URG,PSH
|
|
$tcpflags_action - - ;;+ -p 6 --tcp-flags ALL NONE
|
|
$tcpflags_action - - ;;+ -p 6 --tcp-flags SYN,RST SYN,RST
|
|
$tcpflags_action - - ;;+ -p 6 --tcp-flags SYN,FIN SYN,FIN
|
|
$tcpflags_action - - ;;+ -p tcp --syn --sport 0
|