Skip to content

Instantly share code, notes, and snippets.

@imweijh
Last active February 9, 2017 06:46
Show Gist options
  • Save imweijh/bdd2c3ca89d23ec142267e3dec110b3a to your computer and use it in GitHub Desktop.
Save imweijh/bdd2c3ca89d23ec142267e3dec110b3a to your computer and use it in GitHub Desktop.
install ulogd 2.0.5 on centos5 support json output netflow
yum remove libnfnetlink libnfnetlink-devel
mkdir ./src
cd ./src
wget http://netfilter.org/projects/libnfnetlink/files/libnfnetlink-1.0.1.tar.bz2
tar xjvf libnfnetlink-1.0.1.tar.bz2
cd libnfnetlink-1.0.1
./configure && make && make install
cd ..
wget http://netfilter.org/projects/libnetfilter_log/files/libnetfilter_log-1.0.1.tar.bz2
tar xjvf libnetfilter_log-1.0.1.tar.bz2
cd libnetfilter_log-1.0.1
./configure PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ && make && make install
cd ..
wget --no-check-certificate https://www.netfilter.org/projects/libnetfilter_conntrack/files/libnetfilter_conntrack-1.0.6.tar.bz2
tar xjvf libnetfilter_conntrack-1.0.6.tar.bz2
cd libnetfilter_conntrack-1.0.6
./configure PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ && make && make install
cd ..
wget http://www.digip.org/jansson/releases/jansson-2.9.tar.gz
tar xzvf jansson-2.9.tar.gz
cd jansson-2.9
./configure && make && make install
cd ..
wget http://www.netfilter.org/projects/ulogd/files/ulogd-2.0.5.tar.bz2
tar xzvf ulogd-2.0.5.tar.bz2
cd ulogd-2.0.5
./configure PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ --disable-nfacct --with-jansson
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment