Re: Filtering question: checking for many addresses in a single rule?

From: Jos Backus (jos_at_catnook.com)
Date: 10/22/03

  • Next message: Gerrit Nagelhout: "Non-contiguous ifIndex problems with ifMib sysctl"
    Date: Wed, 22 Oct 2003 09:38:10 -0700
    To: freebsd-net@freebsd.org
    
    

    On Tue, Oct 21, 2003 at 08:59:38PM -0700, Lars Eggert wrote:
    > Jos Backus wrote:
    > >If one has many (thousands) hosts/addresses that the same filter action
    > >needs to be taken for, what would be the most efficient way to implement
    > >this using, say, ipfw or ipfilter?

    > You can generate a rule set based on matching increasingly specific
    > subnets in combination with skipto, i.e. simulate a trie-like structure
    > with the firewall. This can can get you down to O(log).
    >
    > It's not as automatic as you'd like though, probably.

    Right. That would be one way of making the existing rule-based mechanism more
    efficient, but it would presumably still be too slow and cumbersome to
    maintain. However, Pyun YongHyeon pointed me to pf's table feature which looks
    like it fits the ticket perfectly, so I'm going to investigate that.

    Thanks Lars.

    -- 
    Jos Backus                       _/  _/_/_/      Sunnyvale, CA
                                    _/  _/   _/
                                   _/  _/_/_/
                              _/  _/  _/    _/
    jos at catnook.com        _/_/   _/_/_/          require 'std/disclaimer'
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
    

  • Next message: Gerrit Nagelhout: "Non-contiguous ifIndex problems with ifMib sysctl"

    Relevant Pages

    • Re: FTP problem with IPFW
      ... Please do send the sample ipfilter rules. ... To give you an idea about my requirements, my complete IPFW ... Firewall with IPFILTER" ... > All seems to be working fine, except for FTP. ...
      (freebsd-questions)
    • RE: What exactly is ipfilter?
      ... FBSD comes with two firewall applications built into the base ... IPFW and IPFILTER. ...
      (freebsd-questions)
    • Re: /etc/rc.firewall fixes
      ... > I would like to see configuration code for ipfw AND ipfilter ... ipf got its hooks before 4.2-RELEASE. ... never make it into ipfilter itself. ... This enables you to do some rc.firewall like things ...
      (FreeBSD-Security)
    • Re: routing problem
      ... seem to like it a lot - and I use ipfw because I know how to. ... The ipfilter was nating, but I'm not sure about the NAT rules inside the ... temporary firewall rules to log everything in and out per interface .. ... it to static and cloned routing, but taking it out of the mix might help ...
      (freebsd-questions)
    • Re: IPFW, IPFilter and NAT
      ... >> ipfilter and dummynet I don't know. ... > compile them in kernel, then the answer was not stated. ... a second check does the same for IPFW. ... also allow me to use IPFW stateful features on NAT'ed connections, ...
      (comp.unix.bsd.freebsd.misc)