Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2009 14:13:19 +0400
From:      subbsd <subbsd@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: enable IPFIREWALL_DEFAULT_TO_ACCEPT for GENERIC kernel
Message-ID:  <200906151413.19330.subbsd@gmail.com>
In-Reply-To: <3a142e750906150216t3a841097w928b079e238530bc@mail.gmail.com>
References:  <200906151144.34054.subbsd@gmail.com> <200906151251.36846.subbsd@gmail.com> <3a142e750906150216t3a841097w928b079e238530bc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 15 June 2009 13:16:56 Paul B. Mahol wrote:
> On 6/15/09, subbsd <subbsd@gmail.com> wrote:
> > Hello
> >
> > On Monday 15 June 2009 12:37:08 membrana wrote:
> >> subbsd wrote:
> >> > Hello maillist,
> >> >
> >> > Whether there is a way for booting GENERIC kernel with
> >> > ipfw_load="YES"
> >> >
> >> > and
> >> >
> >> > 65535 allow ip from any to any
> >> >
> >> > rules without recompile kernel with options
> >> > IPFIREWALL_DEFAULT_TO_ACCEPT ?
> >> >
> >> > This is single options who force me customize my own kernel with
> >> > freebsd-
> >> > update.
> >> >
> >> > Thanks!
> >>
> >> put ipfw_load="YES" in /boot/loader.conf - keep in mind default is deny
> >
> > ...
> > As i understand, no way for make permit by default when ipfw.ko is
> > loading, before running rc-/user-scripts (rc/rc.firewall...) ? Thanks
>
> put "net.inet.ip.fw.default_to_accept=1" in /etc/sysctl.conf
>
> I guess that rc.d/sysctl is run before rc.d/ipfw

Perfect, thats what i needs. OID net.inet.ip.fw.default_to_accept is read-only 
for userland/sysctl. I change this value in /boot/loader.conf. Thanks Paul!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906151413.19330.subbsd>