mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 04:01:45 +02:00
Suppress 'show actions' error message when /etc/shorewall/actions doesn't exist
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8377 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
ef5cc0bb6d
commit
b2800ec734
@ -581,7 +581,13 @@ show_command() {
|
|||||||
echo "rejNotSyn # Silently Reject Non-syn TCP packets"
|
echo "rejNotSyn # Silently Reject Non-syn TCP packets"
|
||||||
echo "rej1918src # Reject packets with an RFC 1918 source address (Shorewall-perl only)"
|
echo "rej1918src # Reject packets with an RFC 1918 source address (Shorewall-perl only)"
|
||||||
echo "rej1918dst # Reject packets with an RFC 1918 original dest address (Shorewall-perl only)"
|
echo "rej1918dst # Reject packets with an RFC 1918 original dest address (Shorewall-perl only)"
|
||||||
cat ${SHAREDIR}/actions.std ${CONFDIR}/actions | grep -Ev '^\#|^$'
|
|
||||||
|
if [ -f ${CONFDIR}/actions ]; then
|
||||||
|
cat ${SHAREDIR}/actions.std ${CONFDIR}/actions | grep -Ev '^\#|^$'
|
||||||
|
else
|
||||||
|
grep -Ev '^\#|^$' ${SHAREDIR}/actions.std
|
||||||
|
fi
|
||||||
|
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
macros)
|
macros)
|
||||||
|
@ -96,7 +96,7 @@ Problems corrected in Shorewall-perl 4.1.7.
|
|||||||
4) A POLICY of ":" in /etc/shorewall/policy would produce Perl
|
4) A POLICY of ":" in /etc/shorewall/policy would produce Perl
|
||||||
run-time errors.
|
run-time errors.
|
||||||
|
|
||||||
6) An INTERFACE of ":" in /etc/shorewall/interfaces would produce Perl
|
5) An INTERFACE of ":" in /etc/shorewall/interfaces would produce Perl
|
||||||
run-time errors.
|
run-time errors.
|
||||||
|
|
||||||
6) A MARK of ":" in /etc/shorewall/tcrules would produce Perl
|
6) A MARK of ":" in /etc/shorewall/tcrules would produce Perl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user