mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 03:59:16 +01:00
Update multi-ISP doc for automatic .status file generation.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5c596ed715
commit
4f90736601
@ -49,9 +49,9 @@
|
|||||||
</articleinfo>
|
</articleinfo>
|
||||||
|
|
||||||
<warning>
|
<warning>
|
||||||
<para>This document describes the Multi-ISP facility in Shorewall 4.5.0
|
<para>This document describes the Multi-ISP facility in <emphasis
|
||||||
and later. If you are running an earlier release, please see the
|
role="bold">Shorewall 4.5.0 and later</emphasis>. If you are running an
|
||||||
documentation for that release.</para>
|
earlier release, please see the documentation for that release.</para>
|
||||||
</warning>
|
</warning>
|
||||||
|
|
||||||
<warning>
|
<warning>
|
||||||
@ -1552,6 +1552,11 @@ DOWN_COUNT=2</programlisting>
|
|||||||
<filename><replaceable>interface</replaceable>.status</filename>
|
<filename><replaceable>interface</replaceable>.status</filename>
|
||||||
where <replaceable>interface</replaceable> is the interface (e.g.,
|
where <replaceable>interface</replaceable> is the interface (e.g.,
|
||||||
<filename>eth0.status</filename>).</para>
|
<filename>eth0.status</filename>).</para>
|
||||||
|
|
||||||
|
<important>
|
||||||
|
<para>Beginning with Shorewall 4.5.0, the generated script
|
||||||
|
automatically maintains this .status file.</para>
|
||||||
|
</important>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
@ -1911,9 +1916,10 @@ Your LSM Daemon
|
|||||||
|
|
||||||
EOM
|
EOM
|
||||||
|
|
||||||
[ ${STATE} = up ] && state=0 || state=1
|
# Uncomment the next two lines if you are running Shorewall 4.4.x or earlier
|
||||||
|
|
||||||
echo $state > ${VARDIR}/${DEVICE}.status
|
# [ ${STATE} = up ] && state=0 || state=1
|
||||||
|
# echo $state > ${VARDIR}/${DEVICE}.status
|
||||||
|
|
||||||
/sbin/shorewall restart -f >> /var/log/lsm 2>&1
|
/sbin/shorewall restart -f >> /var/log/lsm 2>&1
|
||||||
|
|
||||||
@ -1984,10 +1990,10 @@ Your LSM Daemon
|
|||||||
EOM
|
EOM
|
||||||
|
|
||||||
<emphasis role="bold">if [ ${STATE} = up ]; then
|
<emphasis role="bold">if [ ${STATE} = up ]; then
|
||||||
echo 0 > ${VARDIR}/${DEVICE}.status
|
# echo 0 > ${VARDIR}/${DEVICE}.status # Uncomment this line if you are running Shorewall 4.4.x or earlier
|
||||||
${VARDIR}/firewall enable ${DEVICE}
|
${VARDIR}/firewall enable ${DEVICE}
|
||||||
else
|
else
|
||||||
echo 1 > ${VARDIR}/${DEVICE}.status
|
# echo 1 > ${VARDIR}/${DEVICE}.status # Uncomment this line if you are running Shorewall 4.4.x or earlier
|
||||||
${VARDIR}/firewall disable ${DEVICE}
|
${VARDIR}/firewall disable ${DEVICE}
|
||||||
fi
|
fi
|
||||||
</emphasis>
|
</emphasis>
|
||||||
|
Loading…
Reference in New Issue
Block a user