Am Donnerstag, den 15.11.2007, 11:19 +0100 schrieb Rob Sterenborg: > Hi, > > Searching around I found mention of a TEE target. > (http://www.gossamer-threads.com/lists/iptables/devel/68781) > > Does anyone know if there's a complete set of files (if yes: where) I > can test with? > > > Thanks, > Rob Hi, We are now using the TEE-Target in production environment for a few weeks now and it seems to work well. @Jan: Find attached a patch with some little final bug fixes. Now it compiles with current stable 2.6.23.1 kernel. Please add this to your SVN. @Rob: I guess the best idea is to fetch it from http://dev.computergmbh.de/wsvn/misc_kernel/xt_TEE/ but after Jan adds the patches ;) Any change of getting with into pom-ng? Greets Sebastian. -- Mit freundlichen Grüßen / Yours sincerely Sebastian Claßen Postmaster ---------------------------------------------------------------------- Telefon: + 49 (0) 211 53087 522 Telefax: + 49 (0) 211 5381573 E-Mail: sebastian.classen@xxxxxxxxxx Website: www.freenet.de; www.mobilcom.de ---------------------------------------------------------------------- freenet AG Willstätterstr. 13 40549 Düsseldorf ---------------------------------------------------------------------- Vorsitzender des Aufsichtsrates: Prof. Dr. Helmut Thoma Vorstand: Eckhard Spoerr (Vors.), Axel Krieger, Stephan Esch, Eric Berger Sitz: Büdelsdorf Amtsgericht Kiel HRB 7306 KI
diff -pruN xt_TEE.orig/iptables/libxt_TEE.c xt_TEE/iptables/libxt_TEE.c --- xt_TEE.orig/iptables/libxt_TEE.c 2007-10-05 13:23:03.000000000 +0200 +++ xt_TEE/iptables/libxt_TEE.c 2007-10-09 15:33:49.000000000 +0200 @@ -38,7 +38,7 @@ static const struct option libxt_TEE_opt }; /* Initialize the target. */ -static void libxt_TEE_init(struct xt_entry_target *t, unsigned int *nfcache) +static void libxt_TEE_init(struct xt_entry_target *t) { struct xt_TEE_info *info = (void *)t->data; info->gw = 0; @@ -71,7 +71,7 @@ static int libxt_TEE_parse(int c, char * static void libxt_TEE_check(unsigned int flags) { - if (flags & XT_TEE_OPT_GW) + if (!(flags & XT_TEE_OPT_GW)) exit_error(PARAMETER_PROBLEM, "TEE target: gw option required"); } @@ -100,6 +100,7 @@ static void libxt_TEE_save(const void *i } static struct xtables_target libxt_TEE_reg = { + .family = AF_INET, .name = "TEE", .version = IPTABLES_VERSION, .size = XT_ALIGN(sizeof(struct xt_TEE_info)), diff -pruN xt_TEE.orig/iptables/.TEE-testx xt_TEE/iptables/.TEE-testx --- xt_TEE.orig/iptables/.TEE-testx 2007-10-05 13:23:03.000000000 +0200 +++ xt_TEE/iptables/.TEE-testx 2007-10-05 14:37:10.000000000 +0200 @@ -1,2 +1,2 @@ #!/bin/sh -[ -f "$KERNEL_DIR/net/netfilter/xt_TEE.h" ] && echo TEE +[ -f "$KERNEL_DIR/net/netfilter/xt_TEE.c" ] && echo TEE diff -pruN xt_TEE.orig/kernel/Makefile.ladd xt_TEE/kernel/Makefile.ladd --- xt_TEE.orig/kernel/Makefile.ladd 2007-10-05 13:23:03.000000000 +0200 +++ xt_TEE/kernel/Makefile.ladd 2007-10-08 15:56:21.000000000 +0200 @@ -1 +1,2 @@ +# targets obj-$(CONFIG_NETFILTER_XT_TARGET_TEE) += xt_TEE.o diff -pruN xt_TEE.orig/kernel/xt_TEE.c xt_TEE/kernel/xt_TEE.c --- xt_TEE.orig/kernel/xt_TEE.c 2007-10-05 13:23:03.000000000 +0200 +++ xt_TEE/kernel/xt_TEE.c 2007-10-09 13:53:28.000000000 +0200 @@ -16,7 +16,7 @@ #include <net/icmp.h> #include <net/ip.h> #include <net/route.h> -#ifdef CONFIG_NETFILTER_XTABLES_TARGET_TEE +#ifdef CONFIG_NETFILTER_XT_TARGET_TEE # include <linux/netfilter/xt_TEE.h> #else # include "xt_TEE.h"