List Info

Thread: Re: rc.order wrong (ipfw)




Re: rc.order wrong (ipfw)
user name
2007-03-17 18:50:06
[ Re-locating this thread from -stable. ]

Mark Andrews wrote:
>> On Saturday 17 March 2007 03:58, Mark Andrews
wrote:
>>
>>>>> nothing goes to this machine because by
default everything is blocked
>>>>> until
>>>>>
>>>>> you permit it
>>>> You're absolutely correct, however your
original post seems to have
>>>> taken many of us by surprise, causing some
of us (at least me!) to
>>>> assume that you've changed the default
method to allow.  I'm obviously
>>>> misunderstanding, so I apologise for that,
but I hope you can see the
>>>> reasoning behind my comments with what I
knew at the time.  
>>> 	ipfw needs to be before networking or router
discovery
>>> 	fails for IPv6.
>>>
>>> 	http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/108589

>>>
>>
>> as default any network connection will fail so long
as you do not permit it
>>
>> If rtsol fails or is called to early it is an rtsol
problem and not an ipfw 
>> problem I guess
>>
>> named and ipfw before netif?
> 
> 	ip6fw is before networking. ipfw is supposed to be
taking
> 	over from ip6fw.  ipfw and ip6wf should be started at
a
> 	similar time.
> 
> 	rtsol is approximately the equivalent to DHCP.  The
machine is
> 	requesting a address from the network.  It doesn't
matter if
> 	it is a router or a DHCP server that is suppling the
address.
> 
> 	DHCP only works because it bypasses the firefall.

Mark,

Currently the order (with some non-networking items removed)
is:

/etc/rc.d/ipfilter
/etc/rc.d/ipnat
/etc/rc.d/ipfs
/etc/rc.d/sppp
/etc/rc.d/auto_linklocal
/etc/rc.d/pccard
/etc/rc.d/netif
/etc/rc.d/ip6addrctl
/etc/rc.d/atm2
/etc/rc.d/pfsync
/etc/rc.d/pflog
/etc/rc.d/pf
/etc/rc.d/isdnd
/etc/rc.d/ppp
/etc/rc.d/routing
/etc/rc.d/ip6fw
/etc/rc.d/network_ipv6
/etc/rc.d/ipsec
/etc/rc.d/ipfw
/etc/rc.d/nsswitch
/etc/rc.d/mroute6d
/etc/rc.d/route6d
/etc/rc.d/mrouted
/etc/rc.d/routed
/etc/rc.d/NETWORKING

ipfilter starts very early in the "late" section
of rcorder, it 
requires mountcritlocal (the default early_late_divider) and
has a 
BEFORE: netif.

Currently ip6fw actually starts after routing (and therefore
after 
netif). Before we move it I think someone who knows more
about how 
rtsol works than I do should comment. AFAICT, network_ipv6
is going to 
need routing up. If ip6fw's functionality is going to be
subsumed into 
ipfw, then changing ipfw to run before netif now, and nuking
ip6fw 
later is probably sufficient.

If it's reasonable to conclude that we want all the
firewalls to start 
before netif, I see two ways to accomplish that. One would
be to have 
netif REQUIRE ipfilter, pf, and ipfw. In some ways I think
this is 
cleaner, but netif already has a pretty long REQUIRE line.
The other 
way would be to add a new FIREWALLS placeholder for the
REQUIREs I'm 
suggesting above, and then have netif REQUIRE that.

If on the other hand, there is some reason NOT to start all
the 
firewalls before netif, then things get more complicated.


The attached patch changes the rcorder to the following:

/etc/rc.d/sppp
/etc/rc.d/ipfw
/etc/rc.d/pfsync
/etc/rc.d/pflog
/etc/rc.d/pf
/etc/rc.d/ipfilter
/etc/rc.d/ipnat
/etc/rc.d/ipfs
/etc/rc.d/auto_linklocal
/etc/rc.d/serial
/etc/rc.d/netif
/etc/rc.d/ip6addrctl
/etc/rc.d/atm2
/etc/rc.d/isdnd
/etc/rc.d/ppp
/etc/rc.d/routing
/etc/rc.d/ip6fw
/etc/rc.d/network_ipv6
/etc/rc.d/ipsec
/etc/rc.d/nsswitch
/etc/rc.d/mroute6d
/etc/rc.d/route6d
/etc/rc.d/mrouted
/etc/rc.d/routed
/etc/rc.d/NETWORKING

Thoughts?

Doug

-- 

     This .signature sanitized for your protection

_______________________________________________
freebsd-netfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to
"freebsd-net-unsubscribefreebsd.org"
  
Re: rc.order wrong (ipfw)
country flaguser name
United States
2007-03-17 20:07:26
Doug Barton wrote:
>
> If it's reasonable to conclude that we want all the
firewalls to start
> before netif, I see two ways to accomplish that. One
would be to have
> netif REQUIRE ipfilter, pf, and ipfw. In some ways I
think this is
> cleaner, but netif already has a pretty long REQUIRE
line. The other
> way would be to add a new FIREWALLS placeholder for the
REQUIREs I'm
> suggesting above, and then have netif REQUIRE that.
>
> If on the other hand, there is some reason NOT to start
all the
> firewalls before netif, then things get more
complicated. 
>
>

I definitely think that firewalls should be started as early
as
possible, for obvious reasons.  I can't speak for ipfw, but
removing the
REQUIRE: netif for pf might break some setups where the
ruleset
references a cloned interface that netif creates.  Correct
me if I'm wrong?

Loading a minimal ruleset initially (as OpenBSD and NetBSD
do) would
solve that problem, at least for pf.  The idea has been
discussed a few
times before but I didn't see it go anywhere.

http://lists.freebsd.org/pipermail/freebs
d-pf/2007-February/003041.html

I'd love to see the rcorder for the firewalls get worked
out! 

Kian


_______________________________________________
freebsd-netfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to
"freebsd-net-unsubscribefreebsd.org"

[1-2]

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