mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-01 23:45:53 +02:00
Add 'primary' provider option
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
668759edad
commit
07c21b8968
@ -530,8 +530,9 @@ sub process_a_provider( $ ) {
|
|||||||
$track = 0;
|
$track = 0;
|
||||||
} elsif ( $option =~ /^balance=(\d+)$/ ) {
|
} elsif ( $option =~ /^balance=(\d+)$/ ) {
|
||||||
fatal_error q('balance=<weight>' is not available in IPv6) if $family == F_IPV6;
|
fatal_error q('balance=<weight>' is not available in IPv6) if $family == F_IPV6;
|
||||||
|
fatal_error 'The balance setting must be non-zero' unless $1;
|
||||||
$balance = $1;
|
$balance = $1;
|
||||||
} elsif ( $option eq 'balance' ) {
|
} elsif ( $option eq 'balance' || $option eq 'primary') {
|
||||||
$balance = 1;
|
$balance = 1;
|
||||||
} elsif ( $option eq 'loose' ) {
|
} elsif ( $option eq 'loose' ) {
|
||||||
$loose = 1;
|
$loose = 1;
|
||||||
|
@ -255,6 +255,19 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><emphasis role="bold">primary</emphasis></term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Added in Shorewall 4.6.6, <emphasis
|
||||||
|
role="bold">primary</emphasis> is equivalent to <emphasis
|
||||||
|
role="bold">balance=1</emphasis> and is preferred when the
|
||||||
|
remaining providers specify <emphasis
|
||||||
|
role="bold">fallback</emphasis> or <emphasis
|
||||||
|
role="bold">tproxy</emphasis>.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis
|
<term><emphasis
|
||||||
role="bold">src=</emphasis><replaceable>source-address</replaceable></term>
|
role="bold">src=</emphasis><replaceable>source-address</replaceable></term>
|
||||||
|
@ -162,8 +162,8 @@
|
|||||||
this provider's gateway to be added to the <emphasis
|
this provider's gateway to be added to the <emphasis
|
||||||
role="bold">main</emphasis> routing table (USE_DEFAULT_RT=No)
|
role="bold">main</emphasis> routing table (USE_DEFAULT_RT=No)
|
||||||
or to the <emphasis role="bold">balance</emphasis> routing
|
or to the <emphasis role="bold">balance</emphasis> routing
|
||||||
table (USE_DEFAULT_RT=Yes). At most one provider can specify
|
table (USE_DEFAULT_RT=Yes). Only one provider can specify this
|
||||||
this option.</para>
|
option.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
@ -248,6 +248,19 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><emphasis role="bold">primary</emphasis></term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Added in Shorewall 4.6.6, <emphasis
|
||||||
|
role="bold">primary</emphasis> is a synonym for <emphasis
|
||||||
|
role="bold">balance</emphasis> (see above) and is preferred
|
||||||
|
when the remaining providers specify <emphasis
|
||||||
|
role="bold">fallback</emphasis> or <emphasis
|
||||||
|
role="bold">tproxy</emphasis>.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>src=<replaceable>source-address</replaceable></term>
|
<term>src=<replaceable>source-address</replaceable></term>
|
||||||
|
|
||||||
|
@ -503,6 +503,19 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>primary</term>
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>Added in Shorewall 4.6.6, <emphasis
|
||||||
|
role="bold">primary</emphasis> is a synonym for <emphasis
|
||||||
|
role="bold">balance=1</emphasis> and is preferred when the
|
||||||
|
remaining providers specify <emphasis
|
||||||
|
role="bold">fallback</emphasis> or <emphasis
|
||||||
|
role="bold">tproxy</emphasis>.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>src=<replaceable>source-address</replaceable></term>
|
<term>src=<replaceable>source-address</replaceable></term>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user