diff options
author | Florian Westphal <fw@strlen.de> | 2013-05-06 21:07:38 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2013-05-06 21:07:38 +0200 |
commit | ccbf6b6448a4210432b76fd4660798705b05f8c4 (patch) | |
tree | f41c1d1b789dd50d77c4570b841db4cfc3506fd3 /etc/xtables | |
parent | ca376fcbe51b9a102a490545957d5fee69e253e1 (diff) |
extensions: add connlabel match
allows to "tag" connections with up to 128 label names.
Labels are defined in /etc/xtables/connlabel.conf, example:
0 from eth0
1 via eth0
Labels can then be attached to flows, e.g.
-A PREROUTING -i eth0 -m connlabel --label "from eth0" --set
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'etc/xtables')
-rw-r--r-- | etc/xtables/connlabel.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/xtables/connlabel.conf b/etc/xtables/connlabel.conf new file mode 100644 index 00000000..9167029e --- /dev/null +++ b/etc/xtables/connlabel.conf @@ -0,0 +1,8 @@ +# example connlabel.conf mapping file. +# used by the "connlabel" match to translate names to their bit-value. +0 eth0-in +1 eth0-out +2 ppp-in +3 ppp-out +4 bulk-traffic +5 interactive |