Jon Mitchell wrote: > On Sat, 2006-02-04 at 18:22 +0100, Oliver Schad wrote: >> No this doesn't offers a hole, when no service is running and routing >> is >> deactivated. So all services have to be started after iptables rules. >> Same for routing. > > But this isn't quite what happens by default. Starting up I seem to get > the network, then http-replicator, then iptables. Shutting down is > worse: First iptables is turned off, then ntpd, sshd, http-replicator, > "unmounting network file systems", then the network. So if there were a > problem in these services they would be exposed. > > How do you control the order that programs are shutdown in gentoo?
Edit /etc/init.d/iptables and change dendency settings to depend() { before net use logger } >> Iptables doesn't have to protect the TCP/IP stack but a network >> behind >> the host or services on that host. > > Could the network behind the host also be exposed in this small window? No, because Routing is activated in /etc/init.d/iptables after loading ruleset Regards Oli -- gentoo-security@gentoo.org mailing list