mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-27 07:59:20 +01:00
Always process config file when running /sbin/shorewall
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@283 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
46328322db
commit
93283cc0a3
@ -114,7 +114,6 @@ showchain() # $1 = name of chain
|
|||||||
# Set the configuration variables from shorewall.conf #
|
# Set the configuration variables from shorewall.conf #
|
||||||
#################################################################################
|
#################################################################################
|
||||||
get_config() {
|
get_config() {
|
||||||
get_statedir
|
|
||||||
|
|
||||||
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
[ -z "$LOGFILE" ] && LOGFILE=/var/log/messages
|
||||||
|
|
||||||
@ -536,6 +535,8 @@ fi
|
|||||||
|
|
||||||
banner="Shorewall-$version Status at $HOSTNAME -"
|
banner="Shorewall-$version Status at $HOSTNAME -"
|
||||||
|
|
||||||
|
get_statedir
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start|stop|restart|reset|clear|refresh|check)
|
start|stop|restart|reset|clear|refresh|check)
|
||||||
[ $# -ne 1 ] && usage 1
|
[ $# -ne 1 ] && usage 1
|
||||||
@ -558,7 +559,6 @@ case "$1" in
|
|||||||
iptables -t nat -L -n -v
|
iptables -t nat -L -n -v
|
||||||
;;
|
;;
|
||||||
tos|mangle)
|
tos|mangle)
|
||||||
get_config
|
|
||||||
echo -e "Shorewall-$version TOS at $HOSTNAME - `date`\\n"
|
echo -e "Shorewall-$version TOS at $HOSTNAME - `date`\\n"
|
||||||
show_reset
|
show_reset
|
||||||
iptables -t mangle -L -n -v
|
iptables -t mangle -L -n -v
|
||||||
@ -575,7 +575,6 @@ case "$1" in
|
|||||||
show_tc
|
show_tc
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
get_config
|
|
||||||
echo -e "Shorewall-$version Chain $2 at $HOSTNAME - `date`\\n"
|
echo -e "Shorewall-$version Chain $2 at $HOSTNAME - `date`\\n"
|
||||||
show_reset
|
show_reset
|
||||||
iptables -L $2 -n -v
|
iptables -L $2 -n -v
|
||||||
|
Loading…
Reference in New Issue
Block a user