o Make the 'Ip-filter module loaded' messages informational
o Make 'No ipnat rules' a warning o Remove unecessary ' ..' Approved by: markm (implicit)
This commit is contained in:
parent
f686a8e864
commit
c56836728a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114271
@ -42,7 +42,7 @@ FreeBSD)
|
||||
# load ipfilter kernel module if needed
|
||||
if ! sysctl net.inet.ipf.fr_pass > /dev/null 2>&1; then
|
||||
if kldload ipl; then
|
||||
echo 'IP-filter module loaded.'
|
||||
info 'IP-filter module loaded.'
|
||||
else
|
||||
err 1 'IP-filter module failed to load.'
|
||||
fi
|
||||
|
@ -44,7 +44,7 @@ ipnat_precmd()
|
||||
# Make sure ipfilter is loaded before continuing
|
||||
if ! ${SYSCTL} net.inet.ipf.fr_pass >/dev/null 2>&1; then
|
||||
if kldload ipl; then
|
||||
echo 'IP-filter module loaded.'
|
||||
info 'IP-filter module loaded.'
|
||||
else
|
||||
err 1 'IP-filter module failed to load.'
|
||||
fi
|
||||
@ -55,10 +55,10 @@ ipnat_precmd()
|
||||
ipnat_start()
|
||||
{
|
||||
if [ ! -f ${ipnat_rules} ]; then
|
||||
echo -n ' NO IPNAT RULES'
|
||||
warn 'NO IPNAT RULES'
|
||||
return 0
|
||||
fi
|
||||
echo -n "Installing NAT rules ... "
|
||||
echo -n "Installing NAT rules."
|
||||
${ipnat_program} -CF -f ${ipnat_rules} ${ipnat_flags}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user