fatal error: xtables.h: No such file or directory #include
sudo apt-get install iptables-dev
方法二:
上iptables官网,下载依赖库源码,使用源代码安装,但是需要翻墙(不太推荐)
wget http://www.netfilter.org/projects/iptables/files/iptables-1.6.0.tar.bz2
tar -jxvf iptables-1.6.0.tar.bz2
cd iptables-1.6.0.tar.bz2
之后请参照INSTALL文件安装,操作基本类似
./configure
make
make check
make install
之后就可以使用iptables开发框架了(虽然个人还是推荐netfilter)