Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2002 05:36:54 -0700 (PDT)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/ipfw ipfw.8 ipfw2.c
Message-ID:  <200208191236.g7JCatIG012386@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
luigi       2002/08/19 05:36:54 PDT

  Modified files:
    sbin/ipfw            ipfw.8 ipfw2.c 
  Log:
  One more (hopefully the last one) step in cleaning up the syntax,
  following Julian's good suggestion: since you can specify any match
  pattern as an option, rules now have the following format:
  
          [<proto> from <src> to <dst>] [options]
  
  i.e. the first part is now entirely optional (and left there just
  for compatibility with ipfw1 rulesets).
  
  Add a "-c" flag to show/list rules in the compact form
  (i.e. without the "ip from any to any" part) when possible.
  The default is to include it so that scripts processing ipfw's
  canonical output will still work.
  Note that as part of this cleanup (and to remove ambiguity), MAC
  fields now can only be specified in the options part.
  
  Update the manpage to reflect the syntax.
  
  Clarify the behaviour when a match is attempted on fields which
  are not present in the packet, e.g. port numbers on non TCP/UDP
  packets, and the "not" operator is specified. E.g.
  
          ipfw add allow not src-port 80
  
  will match also ICMP packets because they do not have port numbers, so
  "src-port 80" will fail and "not src-port 80" will succeed. For such
  cases it is advised to insert further options to prevent undesired results
  (e.g. in the case above, "ipfw add allow proto tcp not src-port 80").
  
  We definitely need to rewrite the parser using lex and yacc!
  
  Revision  Changes    Path
  1.109     +84 -55    src/sbin/ipfw/ipfw.8
  1.12      +18 -6     src/sbin/ipfw/ipfw2.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208191236.g7JCatIG012386>