Ts3init Linux netfilter module

ts3init module cant be compiled on 5+ kernel, xtables has to many changes in API i tried to rewrite but its too much for me

this issue is since Kernel Version =>4.10 i hope that will be updated as soon as possible

Dave means here is the technical support but i don’t found this.

The ts3init_linux_netfilter_module on Github ( GitHub - TeamSpeak-Systems/ts3init_linux_netfilter_module: A Linux netfilter module to aid in (d)dos protection ) isn’t working with Debian 10 and Linux_kernel_headers =>4.19 . Can you fix this please. i will use it and it’s absolutly fantastic. Please update this for the newest Debian.

Thx for this but i think a answer is better as merge. fix this. Since >1 year this problem isn’t solved

The attacks on the voice port have increased a lot in the last weeks. The TeamSpeak Server is 100% busy, packet loss and a connection loss is the result even if the host itself and all other services remains reachable. Unfortunately the voice packets are not transmitted over TCP so I wanted to try this filter.

I can confirm the issue with Debian 10 and an up-to-date 4.19 kernel:
4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64

# make
make -C src;
make[1]: Entering directory '/tmp/ts3init_linux_netfilter_module/src'
make -C /lib/modules/4.19.0-16-amd64/build M=$PWD;
make[2]: Entering directory '/usr/src/linux-headers-4.19.0-16-amd64'
  CC [M]  /tmp/ts3init_linux_netfilter_module/src/ts3init_target.o
/tmp/ts3init_linux_netfilter_module/src/ts3init_target.c: In function ‘ts3init_send_ipv4_reply’:
/tmp/ts3init_linux_netfilter_module/src/ts3init_target.c:166:42: error: passing argument 2 of ‘ip_route_me_harder’ from incompatible pointer type [-Werror=incompatible-pointer-types]
     if (ip_route_me_harder(par_net(par), skb, RTN_UNSPEC) != 0)
                                          ^~~
In file included from /usr/src/linux-headers-4.19.0-16-common/include/linux/netfilter/x_tables.h:245,
                 from /tmp/ts3init_linux_netfilter_module/src/ts3init_target.c:21:
/usr/src/linux-headers-4.19.0-16-common/include/linux/netfilter_ipv4.h:19:54: note: expected ‘struct sock *’ but argument is of type ‘struct sk_buff *’
 int ip_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned addr_type);
                                         ~~~~~~~~~~~~~^~
/tmp/ts3init_linux_netfilter_module/src/ts3init_target.c:166:9: error: too few arguments to function ‘ip_route_me_harder’
     if (ip_route_me_harder(par_net(par), skb, RTN_UNSPEC) != 0)
         ^~~~~~~~~~~~~~~~~~
In file included from /usr/src/linux-headers-4.19.0-16-common/include/linux/netfilter/x_tables.h:245,
                 from /tmp/ts3init_linux_netfilter_module/src/ts3init_target.c:21:
/usr/src/linux-headers-4.19.0-16-common/include/linux/netfilter_ipv4.h:19:5: note: declared here
 int ip_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned addr_type);
     ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[5]: *** [/usr/src/linux-headers-4.19.0-16-common/scripts/Makefile.build:309: /tmp/ts3init_linux_netfilter_module/src/ts3init_target.o] Error 1
make[4]: *** [/usr/src/linux-headers-4.19.0-16-common/Makefile:1562: _module_/tmp/ts3init_linux_netfilter_module/src] Error 2
make[3]: *** [Makefile:146: sub-make] Error 2
make[2]: *** [Makefile:8: all] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.19.0-16-amd64'
make[1]: *** [Makefile:10: all] Error 2
make[1]: Leaving directory '/tmp/ts3init_linux_netfilter_module/src'
make: *** [Makefile:2: all] Error 2 

On a test environment with kernel 4.9 everything is ok but this is not an option for me. I also hope for an update soon.

1 Like