diff options
author | luigi <luigi@FreeBSD.org> | 2009-12-15 09:46:27 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2009-12-15 09:46:27 +0000 |
commit | 84d17b9dde0bca3ba11491efd293d666259c204f (patch) | |
tree | 6801a26cde90c352ef557ec26fb56589ca42c654 /sbin/ipfw/ipfw.8 | |
parent | 507718c519a5c35f2ef041763a9715b79c33b177 (diff) | |
download | FreeBSD-src-84d17b9dde0bca3ba11491efd293d666259c204f.zip FreeBSD-src-84d17b9dde0bca3ba11491efd293d666259c204f.tar.gz |
implement a new match option,
lookup {dst-ip|src-ip|dst-port|src-port|uid|jail} N
which searches the specified field in table N and sets tablearg
accordingly.
With dst-ip or src-ip the option replicates two existing options.
When used with other arguments, the option can be useful to
quickly dispatch traffic based on other fields.
Work supported by the Onelab project.
MFC after: 1 week
Diffstat (limited to 'sbin/ipfw/ipfw.8')
-rw-r--r-- | sbin/ipfw/ipfw.8 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8 index 1483dd0..fc83ecc 100644 --- a/sbin/ipfw/ipfw.8 +++ b/sbin/ipfw/ipfw.8 @@ -1391,6 +1391,20 @@ of source and destination addresses and ports can be specified. Currently, only IPv4 flows are supported. +.It Cm lookup Bro Cm dst-ip | dst-port | src-ip | src-port | uid | jail Brc Ar N +Search an entry in lookup table +.Ar N +that matches the field specified as argument. +If not found, the match fails. +Otherwise, the match succeeds and +.Cm tablearg +is set to the value extracted from the table. +.Br +This option can be useful to quickly dispatch traffic based on +certain packet fields. +See the +.Sx LOOKUP TABLES +section below for more information on lookup tables. .It Cm { MAC | mac } Ar dst-mac src-mac Match packets with a given .Ar dst-mac |