Gentoo Archives: gentoo-security

From: Oliver Schad <oliver.schad@×××××××××××.com>
To: gentoo-security@l.g.o
Subject: Re: [gentoo-security] iptables window of opportunity at startup
Date: Wed, 08 Feb 2006 11:59:18
Message-Id: 43E9DB9E.8050605@communology.com
In Reply to: Re: [gentoo-security] iptables window of opportunity at startup by Jon Mitchell
1 Jon Mitchell wrote:
2 > On Sat, 2006-02-04 at 18:22 +0100, Oliver Schad wrote:
3 >> No this doesn't offers a hole, when no service is running and routing
4 >> is
5 >> deactivated. So all services have to be started after iptables rules.
6 >> Same for routing.
7 >
8 > But this isn't quite what happens by default. Starting up I seem to get
9 > the network, then http-replicator, then iptables. Shutting down is
10 > worse: First iptables is turned off, then ntpd, sshd, http-replicator,
11 > "unmounting network file systems", then the network. So if there were a
12 > problem in these services they would be exposed.
13 >
14 > How do you control the order that programs are shutdown in gentoo?
15
16 Edit /etc/init.d/iptables and change dendency settings to
17 depend() {
18 before net
19 use logger
20 }
21
22 >> Iptables doesn't have to protect the TCP/IP stack but a network
23 >> behind
24 >> the host or services on that host.
25 >
26 > Could the network behind the host also be exposed in this small window?
27
28 No, because Routing is activated in /etc/init.d/iptables after loading
29 ruleset
30
31 Regards
32 Oli
33 --
34 gentoo-security@g.o mailing list