mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00:00
De-uglify messages from the ipfw script.
This commit is contained in:
parent
53ec689458
commit
e8a49a350c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160672
@ -35,23 +35,21 @@ ipfw_start()
|
||||
[ -z "${firewall_script}" ] && firewall_script=/etc/rc.firewall
|
||||
|
||||
if [ -r "${firewall_script}" ]; then
|
||||
echo -n 'Starting divert daemons:'
|
||||
if [ -f /etc/rc.d/natd ] ; then
|
||||
/etc/rc.d/natd start
|
||||
fi
|
||||
. "${firewall_script}"
|
||||
echo -n 'Firewall rules loaded'
|
||||
echo 'Firewall rules loaded.'
|
||||
elif [ "`ipfw list 65535`" = "65535 deny ip from any to any" ]; then
|
||||
echo 'Warning: kernel has firewall functionality, but' \
|
||||
' firewall rules are not enabled.'
|
||||
echo ' All ip services are disabled.'
|
||||
fi
|
||||
echo '.'
|
||||
|
||||
# Firewall logging
|
||||
#
|
||||
if checkyesno firewall_logging; then
|
||||
echo 'Firewall logging enabled'
|
||||
echo 'Firewall logging enabled.'
|
||||
sysctl net.inet.ip.fw.verbose=1 >/dev/null
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user