Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.29 KB

INSTALL.md

File metadata and controls

32 lines (25 loc) · 1.29 KB

For Debian 6, 7 and CentOS 6 and 7 you should use automatic installer:

wget https://raw.githubusercontent.com/FastVPSEestiOu/fastnetmon/master/fastnetmon_install.pl
perl fastnetmon_install.pl

It's REQUIRED to add all your networks in CIDR form (11.22.33.44/24) to file /etc/networks_list if form when one subnet on one line. When you running this software in OpenVZ node you may did not specify networks explicitly, we can read it from file /proc/vz/veip.

You can add whitelist subnets in similar form to /etc/networks_whitelist (CIDR masks too).

Start main process:

./opt/fastnetmon/fastnetmon 

Start client process in another console:

/opt/fastnetmon/fastnetmon_client

Enable programm start on server startup, please add to /etc/rc.local this lines:

screen -S fastnetmon -d -m /root/fastnetmon/fastnetmon

If something goes wrong, please check logs:

tail -f /var/logfastnetmon.log

When incoming or outgoing attack arrives programm call bash script (when it exists): /usr/local/bin/notify_about_attack.sh two times. First time when threshold exceed (at this step we know IP, direction and power of attack). Second when we collect 100 packets for detailed audit what did happens.

Guide for manual install (for unsupported platforms): link