mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 07:08:53 +01:00
Split large '--ports' lists across multiple rules.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
91f5a9dec0
commit
b4d4083513
@ -1247,6 +1247,11 @@ sub add_rule($$;$) {
|
|||||||
# Rule has a --sports specification
|
# Rule has a --sports specification
|
||||||
#
|
#
|
||||||
handle_port_list( $chainref, $rule, 0, $1, $2, $3 )
|
handle_port_list( $chainref, $rule, 0, $1, $2, $3 )
|
||||||
|
} elsif ( $rule =~ /^(.* --ports\s+)([^ ]+)(.*)$/ ) {
|
||||||
|
#
|
||||||
|
# Rule has a --ports specification
|
||||||
|
#
|
||||||
|
handle_port_list( $chainref, $rule, 0, $1, $2, $3 )
|
||||||
} elsif ( $rule =~ /^(.* --icmp(?:v6)?-type\s*)([^ ]+)(.*)$/ ) {
|
} elsif ( $rule =~ /^(.* --icmp(?:v6)?-type\s*)([^ ]+)(.*)$/ ) {
|
||||||
#
|
#
|
||||||
# ICMP rule -- split it up if necessary
|
# ICMP rule -- split it up if necessary
|
||||||
|
Loading…
Reference in New Issue
Block a user