From owner-freebsd-questions  Sun Aug  5  6:23:33 2001
Delivered-To: freebsd-questions@freebsd.org
Received: from smtp06.wxs.nl (smtp06.wxs.nl [195.121.6.58])
	by hub.freebsd.org (Postfix) with ESMTP id 42CD937B401
	for <freebsd-questions@FreeBSD.ORG>; Sun,  5 Aug 2001 06:23:24 -0700 (PDT)
	(envelope-from alfatrion@cybertron.tmfweb.nl)
Received: from cybertron ([213.10.151.186]) by smtp06.wxs.nl
          (Netscape Messaging Server 4.05) with SMTP id GHLJUY04.V0X; Sun,
          5 Aug 2001 15:23:22 +0200 
Message-ID: <003b01c11db1$c7efc140$231fa8c0@kruijff>
From: "Alfatrion" <alfatrion@cybertron.tmfweb.nl>
To: <kmidtset@c2i.net>
Cc: <freebsd-questions@FreeBSD.ORG>
References: <3B6D4609.11015.1A8AE39@localhost>
Subject: Re: ipfilter ignores /etc/ipf.rules at boot
Date: Sun, 5 Aug 2001 15:23:01 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-questions.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions>
X-Loop: FreeBSD.ORG

> From:           "Alfatrion" <alfatrion@cybertron.tmfweb.nl>
> To:             <kmidtset@c2i.net>, <freebsd-questions@FreeBSD.ORG>
> Subject:        Re: ipfilter ignores /etc/ipf.rules at boot
> Date sent:      Sun, 5 Aug 2001 13:32:30 +0200
>
> > ----- Original Message -----
> > From: "Kjell" <kmidtset@c2i.net>
> > To: <freebsd-questions@FreeBSD.ORG>
> > Sent: Sunday, August 05, 2001 9:01 AM
> > Subject: ipfilter ignores /etc/ipf.rules at boot
> >
> >
> > > List members!
> > >
> > > I have built a firewall using the
> > > "How to Build a FreeBSD-STABLE Firewall IPFILTER" howto.
> > >
> > > dmesg shows: IP filter initialized, default = block all, Logging =
enabled
> > > and farther down: IP filter already initialized
> > >
> > > The ipfstat command shows: empty list for ipfilter (in/out)
> > >
> > > Any hints on how things should be set up so the rules in the
> > > "/etc/ipf.rules" file should be read?
> > >
> > > Thanks and regards from Kjell (LA3SG)
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-questions" in the body of the message
> > >
> >
> > I had the exact same thing. With me it was because i linked the file to
an
> > other place.
> >
> > Alex
> >
> Thanks Alex!
> But where did you set up the link? The documentation says that
> /etc/ipf.rules is the default...
> Kjell
>
I did this:

mv /etc/ipf.rules /home/ipf.rules
ln -s /home/ipf.rules /etc/ipf.rules

After i removed this thing worked fine.

I also needed to add this to my rc.conf
ipfilter_enable="YES"
ipfilter_flags=""

Alex


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message