All of lore.kernel.org
 help / color / mirror / Atom feed
* Firewall structure and more (Newbie)
@ 2004-07-08 17:10 Erik Wikström
  2004-07-08 17:28 ` Antony Stone
  2004-07-08 17:47 ` James Sneeringer
  0 siblings, 2 replies; 5+ messages in thread
From: Erik Wikström @ 2004-07-08 17:10 UTC (permalink / raw)
  To: netfilter

Hi there

I've got a small home network of 4 computers plus one acting as
router/firewall using iptables. The way it's set up today is very
simple: Masquerading and some forwarded ports.

I've read quite a number of guides and tutorials on using iptables and
netfilter but they all fall in one of two groups, an explaination of all
the parameters and arguments for iptables or a walkthrough of the script
that the author uses. The first kind is good in so much that I now feel
more or less familiar with iptables and the workings of netfilter and
the other kind might be good for those who doesn't want to bother too
much.

But what I do lack is a guide on how to structure your firewall, what
chains to create and what to put in them. So far the best structure I've
come up with considers 3 (or 5) senarios. The first being packets arive from
the net with the firewall as destination. Second being packets from the
firewall, then you have to consider different rules depending on the
destination (LAN or not). And the third scenario, of course, is packets
passing through on their way to or from the LAN, again different rules
depending on destination.

My idea is to create 3 chains for each scenario, one for tcp, one for
udp and one for icmp. And maybe some more like one for port forwarding
or so. But that's an awful lot of rules and some of them might contain
only one or two rules

Which leads to my questions: What do you think of this structure? What
would you do?

How many rules should there be in a chain to compensate for the chain?
(Cause there are some overhead for each chain right?)

I'm also open to suggestions for things to block, and maybe suggestions
on rules to do so, like ping of death and other known problems.

--
Erik Wikström


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

end of thread, other threads:[~2004-07-08 18:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-08 17:10 Firewall structure and more (Newbie) Erik Wikström
2004-07-08 17:28 ` Antony Stone
2004-07-08 18:07   ` Erik Wikström
2004-07-08 18:16     ` Antony Stone
2004-07-08 17:47 ` James Sneeringer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.