Ulogd: Porovnání verzí
Z Wiki UnArt Slavičín
Skočit na navigaciSkočit na vyhledávání
Řádek 57: | Řádek 57: | ||
cd /tmp/ulogd-2.0.0/filter/ | cd /tmp/ulogd-2.0.0/filter/ | ||
wget http://wiki.slavicin.unart.cz/images/1/17/Ulogd_filter_BYTES.c | wget http://wiki.slavicin.unart.cz/images/1/17/Ulogd_filter_BYTES.c | ||
wget http://wiki.slavicin.unart.cz/images/1/17/ulogd_filter_makefile_am_dulik.patch -O /tmp/ | wget http://wiki.slavicin.unart.cz/images/1/17/ulogd_filter_makefile_am_dulik.patch -O /tmp/ulogd_filter_makefile_am_dulik.patch | ||
patch -p0 Makefile.am /tmp/ulogd_filter_makefile_am_dulik.patch | patch -p0 Makefile.am /tmp/ulogd_filter_makefile_am_dulik.patch | ||
rm Makefile.in | rm Makefile.in |
Verze z 14. 8. 2012, 11:46
Závislosti
Nainstalujeme:
apt-get install bzip2 libnfnetlink-dev libmysqlclient-dev libpcap-dev conntrack
Zavedeme moduly do jádra:
modprobe nf_conntrack modprobe nf_conntrack_ipv4 modprobe nf_conntrack_netlink
Postupně ručně nainstalujeme další programy od netfilter:
cd /tmp/ wget http://www.netfilter.org/projects/libmnl/files/libmnl-1.0.3.tar.bz2 tar xjvf libmnl-1.0.3.tar.bz2 cd libmnl-1.0.3 ./configure make make install
cd /tmp/ wget http://www.netfilter.org/projects/libnetfilter_acct/files/libnetfilter_acct-1.0.0.tar.bz2 tar xjvf libnetfilter_acct-1.0.0.tar.bz2 cd libnetfilter_acct-1.0.0/ ./configure make make install
cd /tmp/ wget http://www.netfilter.org/projects/libnetfilter_conntrack/files/libnetfilter_conntrack-1.0.1.tar.bz2 tar xjvf libnetfilter_conntrack-1.0.1.tar.bz2 cd libnetfilter_conntrack-1.0.1/ ./configure make make install
cd /tmp/ wget http://www.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 make make install
Instalace
Stáhneme a rozbalíme:
cd /tmp/ wget http://www.netfilter.org/projects/ulogd/files/ulogd-2.0.0.tar.bz2 tar jxvf ulogd-2.0.0.tar.bz2
Tomáš Dulík napsal modul pro filtrování spojení na minimální množství přenesených dat. Jeho instalace:
cd /tmp/ulogd-2.0.0/filter/ wget http://wiki.slavicin.unart.cz/images/1/17/Ulogd_filter_BYTES.c wget http://wiki.slavicin.unart.cz/images/1/17/ulogd_filter_makefile_am_dulik.patch -O /tmp/ulogd_filter_makefile_am_dulik.patch patch -p0 Makefile.am /tmp/ulogd_filter_makefile_am_dulik.patch rm Makefile.in cd ../ autoheader && aclocal && automake && autoconf && autoreconf
Nyní již mělo stačit:
./configure make make install