mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-18 20:54:33 +02:00
Rename the policy LIMIT column to RATE
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
@@ -777,7 +777,11 @@ sub process_a_policy() {
|
|||||||
our @zonelist;
|
our @zonelist;
|
||||||
|
|
||||||
my ( $clients, $servers, $policy, $loglevel, $synparams, $connlimit ) =
|
my ( $clients, $servers, $policy, $loglevel, $synparams, $connlimit ) =
|
||||||
split_line 'policy file', { source => 0, dest => 1, policy => 2, loglevel => 3, limit => 4, connlimit => 5 } ;
|
split_line2( 'policy file',
|
||||||
|
{ source => 0, dest => 1, policy => 2, loglevel => 3, limit => 4, rate => 4, connlimit => 5 } ,
|
||||||
|
{} , # nopad
|
||||||
|
6 , # maxcolumns
|
||||||
|
);
|
||||||
|
|
||||||
$loglevel = '' if $loglevel eq '-';
|
$loglevel = '' if $loglevel eq '-';
|
||||||
$synparams = '' if $synparams eq '-';
|
$synparams = '' if $synparams eq '-';
|
||||||
|
@@ -7,7 +7,6 @@
|
|||||||
# http://www.shorewall.net/manpages/shorewall-policy.html
|
# http://www.shorewall.net/manpages/shorewall-policy.html
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#SOURCE DEST POLICY LOG LIMIT: CONNLIMIT:
|
#SOURCE DEST POLICY LOGLEVEL RATE CONNLIMIT
|
||||||
# LEVEL BURST MASK
|
|
||||||
$FW net ACCEPT
|
$FW net ACCEPT
|
||||||
net all DROP $LOG_LEVEL
|
net all DROP $LOG_LEVEL
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# For information about entries in this file, type "man shorewall-policy"
|
# For information about entries in this file, type "man shorewall-policy"
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
|
#SOURCE DEST POLICY LOGLEVEL RATE CONNLIMIT
|
||||||
$FW net ACCEPT
|
$FW net ACCEPT
|
||||||
net all DROP $LOG_LEVEL
|
net all DROP $LOG_LEVEL
|
||||||
# The FOLLOWING POLICY MUST BE LAST
|
# The FOLLOWING POLICY MUST BE LAST
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# For information about entries in this file, type "man shorewall-policy"
|
# For information about entries in this file, type "man shorewall-policy"
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
|
#SOURCE DEST POLICY LOGLEVEL RATE CONNLIMIT
|
||||||
|
|
||||||
loc net ACCEPT
|
loc net ACCEPT
|
||||||
net all DROP $LOG_LEVEL
|
net all DROP $LOG_LEVEL
|
||||||
|
@@ -11,10 +11,10 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# For information about entries in this file, type "man shorewall-policy"
|
# For information about entries in this file, type "man shorewall-policy"
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
|
#SOURCE DEST POLICY LOGLEVEL RATE CONNLIMIT
|
||||||
|
|
||||||
loc net ACCEPT
|
loc net ACCEPT
|
||||||
net all DROP $LOG_LEVEL
|
net all DROP $LOG_LEVEL
|
||||||
# THE FOLLOWING POLICY MUST BE LAST
|
# THE FOLOWING POLICY MUST BE LAST
|
||||||
all all REJECT $LOG_LEVEL
|
all all REJECT $LOG_LEVEL
|
||||||
|
|
||||||
|
@@ -7,4 +7,4 @@
|
|||||||
# http://www.shorewall.net/manpages/shorewall-policy.html
|
# http://www.shorewall.net/manpages/shorewall-policy.html
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#SOURCE DEST POLICY LOGLEVEL LIMIT CONNLIMIT
|
#SOURCE DEST POLICY LOGLEVEL RATE CONNLIMIT
|
||||||
|
@@ -283,7 +283,7 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">BURST:LIMIT</emphasis> (limit) -
|
<term><emphasis role="bold">RATE</emphasis> (rate) -
|
||||||
[-|<replaceable>limit</replaceable>]</term>
|
[-|<replaceable>limit</replaceable>]</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@@ -7,8 +7,7 @@
|
|||||||
# http://www.shorewall.net/manpages/shorewall-policy.html
|
# http://www.shorewall.net/manpages/shorewall-policy.html
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#SOURCE DEST POLICY LOG LIMIT: CONNLIMIT:
|
#SOURCE DEST POLICY LOGLEVEL RATE CONNLIMIT
|
||||||
# LEVEL BURST MASK
|
|
||||||
fw net ACCEPT
|
fw net ACCEPT
|
||||||
net all DROP $LOG_LEVEL
|
net all DROP $LOG_LEVEL
|
||||||
|
|
||||||
|
@@ -11,8 +11,8 @@
|
|||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# For information about entries in this file, type "man shorewall6-policy"
|
# For information about entries in this file, type "man shorewall6-policy"
|
||||||
#
|
#
|
||||||
###############################################################################
|
##############################################################################
|
||||||
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
|
#SOURCE DEST POLICY LOGLEVEL RATE CONNLIMIT
|
||||||
$FW net ACCEPT
|
$FW net ACCEPT
|
||||||
net all DROP $LOG_LEVEL
|
net all DROP $LOG_LEVEL
|
||||||
# The FOLLOWING POLICY MUST BE LAST
|
# The FOLLOWING POLICY MUST BE LAST
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# For information about entries in this file, type "man shorewall6-policy"
|
# For information about entries in this file, type "man shorewall6-policy"
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
|
#SOURCE DEST POLICY LOGLEVEL RATE CONNLIMIT
|
||||||
|
|
||||||
loc net ACCEPT
|
loc net ACCEPT
|
||||||
net all DROP $LOG_LEVEL
|
net all DROP $LOG_LEVEL
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# For information about entries in this file, type "man shorewall6-policy"
|
# For information about entries in this file, type "man shorewall6-policy"
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
|
#SOURCE DEST POLICY LOGLEVEL RATE CONNLIMIT
|
||||||
|
|
||||||
loc net ACCEPT
|
loc net ACCEPT
|
||||||
net all DROP $LOG_LEVEL
|
net all DROP $LOG_LEVEL
|
||||||
|
@@ -7,4 +7,4 @@
|
|||||||
# http://www.shorewall.net/manpages6/shorewall6-policy.html
|
# http://www.shorewall.net/manpages6/shorewall6-policy.html
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#SOURCE DEST POLICY LOGLEVEL LIMIT CONNLIMIT
|
#SOURCE DEST POLICY LOGLEVEL RATE CONNLIMIT
|
||||||
|
@@ -281,7 +281,7 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">BURST:LIMIT</emphasis> (limit) -
|
<term><emphasis role="bold">RATE</emphasis> (rate) -
|
||||||
[-|<replaceable>limit</replaceable>]</term>
|
[-|<replaceable>limit</replaceable>]</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
|
Reference in New Issue
Block a user