forked from extern/shorewall_code
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>
|
||||
|
||||
<warning>
|
||||
<para>This document describes the Multi-ISP facility in Shorewall 4.5.0
|
||||
and later. If you are running an earlier release, please see the
|
||||
documentation for that release.</para>
|
||||
<para>This document describes the Multi-ISP facility in <emphasis
|
||||
role="bold">Shorewall 4.5.0 and later</emphasis>. If you are running an
|
||||
earlier release, please see the documentation for that release.</para>
|
||||
</warning>
|
||||
|
||||
<warning>
|
||||
@ -1552,6 +1552,11 @@ DOWN_COUNT=2</programlisting>
|
||||
<filename><replaceable>interface</replaceable>.status</filename>
|
||||
where <replaceable>interface</replaceable> is the interface (e.g.,
|
||||
<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>
|
||||
@ -1911,9 +1916,10 @@ Your LSM Daemon
|
||||
|
||||
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
|
||||
|
||||
@ -1984,10 +1990,10 @@ Your LSM Daemon
|
||||
EOM
|
||||
|
||||
<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}
|
||||
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}
|
||||
fi
|
||||
</emphasis>
|
||||
|
Loading…
Reference in New Issue
Block a user