pf start twice !

hi ,i have pf compiled in kernel ,when i stop pf i see :
Code:
[root@localhost ]# /etc/rc.d/pf stop
Disabling pfpf disabled
.
also when FreeBSD boot i see :
Code:
Enabling pfpf
 
Please show exactly what you have in /etc/rc.conf relating to pf.
 
Code:
pf_enable="YES"
pf_rules="/etc/pf/pf.conf"
pf_flags=""
pflog_logfile="/var/log/pf/pflog"
pflog_enable="YES"
it is also breaking VOIP protocol
 
Output from /etc/rc.d/pf that you posted has nothing to do with pf starting twice ("pf enabled" is output from /sbin/pfctl). Can you describe what the problem really is?
 
the problem is pf does not work in other words it is does not filter !
i found it is not only pf double output but uname too :
Code:
uname -a
FreeBSD localhost 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #9: 
Thu Jun  3 07:40:47 CET 2010     SIFE@localhost:/usr/obj/usr/src/sys/STABLE  i386
 
That's normal, SIFE.
Code:
$ uname -a
FreeBSD box 8.0-STABLE FreeBSD 8.0-STABLE #1: Tue May 18 13:35:59 CEST 2010     toor@box:/usr/obj/usr/src/sys/AMD64  amd64
 
pf is not starting twice. It is just a style error.
The "Disabling pf" comes from the rc.d script, while the "pf disabled" is the actual output of the "pfctl -d" command.

If pf is not working, there might be another error.
 
damn! no edit.
so from /etc/rc.d/pf:

Code:
pf_stop()
{
        if $pf_program -s info | grep -q "Enabled" ; then
                echo -n 'Disabling pf'
                $pf_program -d
                echo '.'
        fi
}

as you can see, your output is normal
 
Back
Top