Rename the policy LIMIT column to RATE

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-02-12 10:17:43 -08:00
parent 735919d8d3
commit 48d301b2cf
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10
13 changed files with 39 additions and 37 deletions

View File

@ -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 '-';

View File

@ -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

View File

@ -11,8 +11,8 @@
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# 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
all all REJECT $LOG_LEVEL all all REJECT $LOG_LEVEL

View File

@ -11,9 +11,9 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# 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 FOLLOWING POLICY MUST BE LAST
all all REJECT $LOG_LEVEL all all REJECT $LOG_LEVEL

View File

@ -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

View File

@ -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

View File

@ -259,7 +259,7 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><emphasis role="bold">LOG LEVEL</emphasis> (loglevel) - <term><emphasis role="bold">LOGLEVEL</emphasis> (loglevel) -
[<emphasis>log-level</emphasis>|<emphasis [<emphasis>log-level</emphasis>|<emphasis
role="bold">ULOG|NFLOG</emphasis>]</term> role="bold">ULOG|NFLOG</emphasis>]</term>
@ -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>

View File

@ -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

View File

@ -11,9 +11,9 @@
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# 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
all all REJECT $LOG_LEVEL all all REJECT $LOG_LEVEL

View File

@ -11,9 +11,9 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# 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
all all REJECT $LOG_LEVEL all all REJECT $LOG_LEVEL

View File

@ -11,9 +11,9 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# 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
all all REJECT $LOG_LEVEL all all REJECT $LOG_LEVEL

View File

@ -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

View File

@ -257,7 +257,7 @@
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><emphasis role="bold">LOG LEVEL</emphasis> (loglevel) - <term><emphasis role="bold">LOGLEVEL</emphasis> (loglevel) -
[<emphasis>log-level</emphasis>|<emphasis [<emphasis>log-level</emphasis>|<emphasis
role="bold">NFLOG</emphasis>]</term> role="bold">NFLOG</emphasis>]</term>
@ -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>