]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: add connlabel match
authorFlorian Westphal <fw@strlen.de>
Mon, 6 May 2013 19:01:38 +0000 (21:01 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 6 May 2013 19:03:17 +0000 (21:03 +0200)
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>
Makefile.am

index c38d36004c3c80ea55b035fd4883cdaa4ac07344..cd008a1930dcd3dc693a2e9851a02c53da736775 100644 (file)
@@ -24,5 +24,9 @@ tarball:
        tar -C /tmp -cjf ${PACKAGE_TARNAME}-${PACKAGE_VERSION}.tar.bz2 --owner=root --group=root ${PACKAGE_TARNAME}-${PACKAGE_VERSION}/;
        rm -Rf /tmp/${PACKAGE_TARNAME}-${PACKAGE_VERSION};
 
+install-data-hook:
+       @mkdir -p -m 755 $(DESTDIR)/etc/xtables/ || :
+       @test -f /etc/xtables/connlabel.conf || $(INSTALL) -m 644 etc/xtables/connlabel.conf $(DESTDIR)/etc/xtables/connlabel.conf || :
+
 config.status: extensions/GNUmakefile.in \
        include/xtables-version.h.in include/iptables/internal.h.in