List Info

Thread: ipfilter?




ipfilter?
user name
2006-01-17 13:01:25
Hi all!

I am trying to use ipfilter on NetBSD 3.0 i386 (I have
already successfully
installed and tested it on NetBSD 2.0.2 i386).

# sysctl -w net.inet.ip.forwarding=1
net.inet.ip.forwarding: 0 -> 1

# cat /etc/ipf.conf
pass in  quick on lo0 all
pass out quick on lo0 all

# /etc/rc.d/ipfilter stop
Disabling ipfilter.
open device: Device not configured
SIOCFRENB: Bad file descriptor

# /etc/rc.d/ipfilter start
Enabling ipfilter.
open device: Device not configured
SIOCFRENB: Bad file descriptor
open device: Device not configured
User/kernel version check failed
open device: Device not configured
User/kernel version check failed
2:ioctl(add/insert rule): Bad file descriptor
1:ioctl(add/insert rule): Bad file descriptor

# ipf -V
ipf: IP Filter: v4.1.8 (396)
open device: Device not configured

What's that? Do I need to recompile a kernel?

I thank you in advance,

Sylvain.

ipfilter?
user name
2006-01-17 20:21:37
On Tue, Jan 17, 2006 at 01:01:25PM +0000, Sylvain Briole
wrote:
> Hi all!
> 
> I am trying to use ipfilter on NetBSD 3.0 i386 (I have
already successfully
> installed and tested it on NetBSD 2.0.2 i386).
> 
> # sysctl -w net.inet.ip.forwarding=1
> net.inet.ip.forwarding: 0 -> 1
> 
> # cat /etc/ipf.conf
> pass in  quick on lo0 all
> pass out quick on lo0 all
> 
> # /etc/rc.d/ipfilter stop
> Disabling ipfilter.
> open device: Device not configured
> SIOCFRENB: Bad file descriptor

Did you do an install or an upgrade ? If upgrade, make sure
you don't have old
binaires lying around, and run
cd /dev; ./MAKEDEV all

-- 
Manuel Bouyer <bouyerantioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la
difference
--
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )