Thank you
You were right I had not built the kernel with IPFilter options.

But I cannot get the kernel to build after I had done a "make depend" I did a make with
the following errors
common  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror
../../../contrib/ipfilter/netinet/fil.c
cc1: warnings being treated as errors
../../../contrib/ipfilter/netinet/fil.c: In function `frsync':
../../../contrib/ipfilter/netinet/fil.c:2004: warning: implicit declaration of function
`IFNET_RLOCK'
../../../contrib/ipfilter/netinet/fil.c:2017: warning: implicit declaration of function
`IFNET_RUNLOCK'
*** Error code 1

Stop in /usr/src/sys/i386/compile/NEBULA.
nebula:root %


Toomas Aas wrote:

> > I have ipf on a freebsd V5 box but am unable to get
> > the ipfilter to work.
> >
> >  in my rc.conf file I have the line ipfilter_enable="YES"
> >  and the config file is set to /etc/ipf.rules . This file was working on a freebsd
> >
> >  v4.7 ok, but even when I do a ipf -V I get this back
> >  nebula:root % ipf -V
> >  ipf: IP Filter: v3.4.29 (336)
> >  open device: No such file or directory
> >  or when I try to start from command line with
> >  nebula:root % ipf -Fa -f /etc/ipf.rules
> >  open device: No such file or directory
> >  ioctl(SIOCIPFFL): Bad file descriptor
> >  open device: No such file or directory
> >  1:ioctl(add/insert rule): Bad file descriptor
>
> Sounds like you haven't built the kernel with IPFilter options.
> --
> Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
> * Tell me what you need, and I'll tell you how to get along without it.


Reply via email to