Linux Netfilter discussions
 help / color / mirror / Atom feed
* Question about /etc/iptables.down.rules
@ 2007-08-27  1:51 TinyApps.Org
  2007-08-27  7:52 ` Покотиленко Костик
  0 siblings, 1 reply; 4+ messages in thread
From: TinyApps.Org @ 2007-08-27  1:51 UTC (permalink / raw)
  To: netfilter

I have a very simple set of iptables rules:

# iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# iptables -A INPUT -p tcp -i eth0 --dport ssh -j ACCEPT
# iptables -I INPUT -i lo -j ACCEPT
# iptables -A INPUT -j DROP

which has been saved to /etc/iptables.up.rules .

I have also modified /etc/network/interfaces to use the ruleset:

            iface eth0 inet static
                    address x.x.x.x
                    [.. interface configuration ..]
                    pre-up iptables-restore < /etc/iptables.up.rules

I understand that it is best to setup a set of rules to be applied
when the network interface is down, saving it to:

  /etc/iptables.down.rules

and applying in /etc/network/interfaces via:

post-down iptables-restore < /etc/iptables.down.rules

What should this set of rules look like? The exact opposite
of /etc/iptables.up.rules ? Or just a simple flush command?
Or something else altogether?

Sincerely,

Miles



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-27  8:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27  1:51 Question about /etc/iptables.down.rules TinyApps.Org
2007-08-27  7:52 ` Покотиленко Костик
2007-08-27  8:01   ` TinyApps.Org
2007-08-27  8:42     ` Покотиленко Костик

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox