下面是出错的现象
# iptables -m RATEEST
/lib/xtables/libxt_RATEEST.so: /lib/xtables/libxt_RATEEST.so: undefined symbol: log
iptables v1.4.12: Couldn't load match `RATEEST':Success
Try `iptables -h' or 'iptables --help' for more information.
# iptables -m statistic
/lib/xtables/libxt_statistic.so: /lib/xtables/libxt_statistic.so: undefined symbol: lround
iptables v1.4.12: Couldn't load match `statistic':Success
Try `iptables -h' or 'iptables --help' for more information.
This two modules should be linked against -lm
修复该问题的方法
$ apt-get build-dep iptables
$ apt-get build-dep source
$ wget https://launchpadlibrarian.net/104349144/xtables-lm-noasneeded.patch
$ cd iptables-1.4.12
$ quilt import ../xtables-lm-noasneeded.patch
$ quilt push -a
$ dpkg-buildpackage -b
$ cd ..
$ sudo dpkg -i iptables_1.4.12-1ubuntu4_amd64.deb
$ echo "iptables hold" | sudo dpkg --set-selections
https://bugs.launchpad.net/ubuntu/+source/iptables/+bug/982961
dpkg的用法