2,10 → 2,10 |
|
ALCASAR need the following programs that don't be included as RPM in Mageia : |
- coovachilli (the captive portal) |
- havp (http antivirus proxy) |
- ipt_netflow kernel module (netflow log system) |
- wkhtmltopdf (html to pdf renderer) |
- nfdump (collector & processor for netflow data) |
- havp (http antivirus proxy) used before ALCASAR V3.5 |
|
This howto explains how to build RPM of these programs in order to keep the distribution clean |
The compilation options are set in /etc/rpm/macro.d/* |
44,7 → 44,7 |
- Must be complied on a system which runs the target kernel. So install manually the targeted kernel and the same version of kernel-userspace-headers and reboot (ipt_NETFLOW will not load during this reboot) |
- install the RPMs "kernel-server-devel" (choose the targeted kernel), "lib64iptables-devel" |
- download, uncompress and test the compilation of the last version of ipt-netflow (./configure --disable-dkms --disable-snmp-agent, make all install). The module is compiled in the same directory. The libs are copied in the /lib64/iptables (libip6t_NETFLOW.so & libipt_NETFLOW.so) |
- test the module : go to the directory of sources and try to load it (modprobe ipt_NETFLOW), look at "journalctrl -f" to verify. Run "alcasar-iptables.sh" to reload netfilter rules (no errors should appear). Run "alcasar-daemon.sh" to verify that all is ok. |
- test the module : go to the directory of sources and try to load it (insmod ./ipt_NETFLOW.ko), look at "journalctrl -f" to verify. Run "alcasar-iptables.sh" to reload netfilter rules (no errors should appear). Run "alcasar-daemon.sh" to verify that all is ok. |
- if all is ok, copy the tarball in rpmbuild/SOURCES. |
- Copy and adapt the .spec in rpmbuild/SPECS (change the versions of kernel and rpm). |
- Run "rpmbuild -bb ****.spec" |