Linux kernel and iptables modules to set/reset DF flag
Execute make to download iptables 1.4.21 and compile modules for your kernel and iptables.
- modprobe x_tables
- insmod ipt_DF.ko
- Put libipt_DF.so to your iptables dynamic libraries folder (usually /lib/[ip,x]tables or /usr/lib/[ip,x]tables)
- iptables -t mangle -A [PREROUTING/POSTROUTING] -j DF [--set|--reset]
This code is avaiable under dual Modified BSD/GPL3 license; if you change license, change also MODULE_LICENSE in ipt_DF.c.