I'll have to do packet inspection, mangling, dropping and injection of packets on a Linux system. Ideally, this would be in user space and on IP packets and Ethernet frames, too.
Unfortunately, I cannot go OpenSource for this which basically rules out any approach based on NFQUEUE
and libnetfilter_queue
, since all of netfilter
(and their dog) is GPL only.
I thought about using TAP/TUN devices in parallel to controlling netfilter
by simply calling iptables
, but this seems to be messy at best...
So, are there any alternatives to netfilter
?