参考文章:http://www.wzdftpd.net/blog/index.php?post/2008/04/05/19-ulogd2-the-new-userspace-logging-daemon-for-netfilter-iptables-part-2
ulogd2.0.1的下载地址:http://www.netfilter.org/projects/ulogd/downloads.html
安装ulogd2.0.1之前需要安装的软件包如下:
- libnfnetlink that provides basic communication infrastructure via Netlink.
- libmnl that provides basic communication infrastructure via Netlink, this library will supersede libnfnetlink. Still, we require both libraries as we are still in transition to entirely replace libnfnetlink by libmnl.
- libnetfilter_log for stateless packet-based logging via nfnetlink_queue.
- libnetfilter_conntrack for stateful flow-based via nf_conntrack_netlink.
- libnetfilter_acct for flexible traffic accounting via nfnetlink_acct and iptables nfacct match (it requires Linux kernel >= 3.3.x).
建议如上安装包直接安装到/usr/local/lib目录下
如果要把ulogd产生的日志记录到mysql数据中,那应先安装mysql数据库
安装mysql数据库请参考:http://blog.csdn.net/dlutxie/article/details/8243359