NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Cant start ipf
Todd,
Well, to fix this problem you need to get the HEAD version of the ipf 
binary. If you already have all of the HEAD source code, you could go to 
/usr/src/sbin/ipf and run make and that will build the correct binary. 
If not, you could download base.tar.?z for HEAD and run:
tar -xzvpf base.tar.?z *ipf*
That would extract any files with ipf in the name (in their 
subdirectories - in this case sbin, so it will create ./sbin/ipf*). Then 
try to run "./ipf -f /etc/ipf.conf" (to use the local ipf rather than 
the one that's in /sbin and see if it works. If so, you're done. Save 
the old ipf and place the new ipf in /sbin. Then the rc.d script should 
work fine.
If not then you could run ldd against the ipf binary to show what 
libraries are needed. It might be possible to unpack those libraries 
(assuming there's no conflict with existing libraries). But, you 
probably should just do an in-place upgrade so all of your binaries 
match the kernel. There's instructions in the history of this list that 
will walk you through that.
Since I was right about the problem, I'm cc'ing the list again. Sorry 
about the top posting, the mail client I was using before has mucked up 
the formatting so I can't post at the bottom :(
Thanks,
Jason M.
Get BlueMail for Android <https://bluemail.me>
On Jun 26, 2021, at 9:59 PM, Todd Gruhn <tgruhn2%gmail.com@localhost 
<mailto:tgruhn2%gmail.com@localhost>> wrote:
   Exactly, Jason. Ideas? I also  upgraded the rest of the software.
   This is a first for me.
   On Sat, Jun 26, 2021 at 9:01 PM Jason Mitchell <jmitchel%bigjar.com@localhost> wrote:
       I'm guessing it means the ipf binary (named ipf) version doesn't
       match the kernel version of ipf. Are you by any chance running a
       HEAD kernel with 9.x userland (the userland comes from
       base.tar.?x, and the other sets.) Thanks, Jason M. Get BlueMail
       for Android On Jun 26, 2021, at 5:56 PM, Todd Gruhn
       <tgruhn2%gmail.com@localhost> wrote:
           I made some changes to my ipf rulebase. Then I deleted
           /var/log/ipmonlog ; and did "touch ipmonlog" /bin/ksh
           /etc/rc.d/ipfilter start Enabling ipfilter. 0:open device:
           Device not configured 0:SIOCFRENB: Bad file descriptor open
           device: Device not configured User/kernel version check
           failed open device: Device not configured User/kernel
           version check failed 0:1:ioctl(add/insert rule)
           0:3:ioctl(add/insert rule) 0:4:ioctl(add/insert rule)
           0:6:ioctl(add/insert rule) 0:7:ioctl(add/insert rule)
           0:8:ioctl(add/insert rule) 0:10:ioctl(add/insert rule) Whats
           with the 'kernel-version check failed' ? I am currently
           running NetBSD-9.*-HEAD 
Home |
Main Index |
Thread Index |
Old Index