All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@lists.netfilter.org>
Subject: Re: Filtering in PREROUTING
Date: Fri, 19 Jan 2007 09:51:05 -0600	[thread overview]
Message-ID: <45B0E8E9.4090107@riverviewtech.net> (raw)
In-Reply-To: <1169212660.16267.1.camel@len.t-t-l.co.uk>

george wrote:
> - broadcasts, mostly from Windows boxes which include Grant's netbeui
> example.  These are most frequent and were the trigger for doing this.

Remember that not all NetBEUI traffic is a broadcast.  In fact, the only 
thing that is a broadcast is traffic looking for other hosts (if you are 
not using NetBIOS Name Server (a.k.a. WINS)) or messages that are meant 
to be broadcast messages to user / computers / domains, i.e. "The server 
is going down for maintenance." messages.

> - spoofed source address (I don't know if I really need these with
> rp-filter enabled, in particular to catch private addresses if they
> manage to get in from the Internet.  I may be being too paranoid here)

RP filter can detect spoofed source traffic from your internal network 
subnet, but not the internet at large.

> These all look good to me.  I haven't needed NOTRACK before so I'd have
> to get that bit straight in my head if I were to go that way.

To my knowledge, NOTRACK is really just used to tell the connection 
tracking system to not track a packet.  There is not really a lot of use 
for this in most installs.  There are only two things that come to mind 
where you would not want / need this.  1)  If you were using TARPIT and 
did not want to tie up CTState table entries.  2)  If you were doing 
some sort of really high traffic for specific services and did not want 
that service to be connection tracked.

> I'm still not sure that I'm doing anything wrong, just unconventional.

I will agree with and not argue with that statement.

> From what I've been told via this list I'm thinking that it would be
> sensible to move my broadcast dropping to raw, state checks to filter
> and I don't know if I even need the spoofing checks, but if I do I
> suspect raw is the place for them.

In accordance with your above statement, I will say that (IMHO) the 
filter table is better, but raw is not wrong.

> I am still slightly nervous that by going against the designers'
> intentions I might end up with something breaking.  I would hope that
> anything dangerous wouldn't be allowed but "of course I didn't check for
> that - nobody would do that would they" is a classic reaon for software
> flaws :)

Well I don't *think* / believe you will run in to any bugs that will 
break things short of a bug in a specific match (extension).  As I 
understand it, most pieces of NetFilter are small modules that just 
check their small data set and return a value.  IPTables it self calls 
small tests in combination with each other and deciding what to do based 
on the return value from the small tests.  Note, this is what I have 
derived being a NetFilter / IPTables user, not from a developers standpoint.



Grant. . . .



Grant. . . .


      reply	other threads:[~2007-01-19 15:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17 21:38 Filtering in PREROUTING george
2007-01-17 22:17 ` Jorge Davila
2007-01-18  2:01   ` Grant Taylor
2007-01-18  8:42     ` Alexandru Dragoi
2007-01-19 17:34       ` R. DuFresne
2007-01-18  8:46     ` george
2007-01-19 17:25     ` R. DuFresne
2007-01-18  4:44 ` p0f patch Tim Heagarty
2007-01-19 19:23   ` Tim Heagarty
2007-01-20  2:23     ` Michael Rash
2007-01-18 10:52 ` Filtering in PREROUTING Georgi Alexandrov
2007-01-19 10:19   ` george
2007-01-19 11:32     ` Pascal Hambourg
2007-01-18 14:25 ` Grant Taylor
2007-01-19 13:17   ` george
2007-01-18 14:57 ` Filtering in PREROUTING --- Some random thoughts / points Grant Taylor
2007-01-19 17:54   ` R. DuFresne
2007-01-18 19:19 ` Filtering in PREROUTING Pascal Hambourg
2007-01-19 13:17   ` george
2007-01-19 15:51     ` Grant Taylor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45B0E8E9.4090107@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=gtaylor+reply@riverviewtech.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.