Difference between revisions of "FastNetMon"
From HackerNet
Helikopter (talk | contribs) |
Helikopter (talk | contribs) m (→Konfiguration) |
||
Line 11: | Line 11: | ||
Det mesta görs i huvudkonf-filen. | Det mesta görs i huvudkonf-filen. | ||
nano /etc/fastnetmon.conf | nano /etc/fastnetmon.conf | ||
− | notify_script_path = /usr/local/bin/notify_about_attack.sh | + | |
+ | ===Notify=== | ||
+ | Default: notify_script_path = /usr/local/bin/notify_about_attack.sh <br/> | ||
+ | Skapa script | ||
+ | nano /usr/local/bin/notify_about_attack.sh | ||
+ | chmod +x /usr/local/bin/notify_about_attack.sh | ||
+ | |||
+ | ===Klient=== | ||
+ | Kolla live. | ||
+ | /opt/fastnetmon/fastnetmon_client | ||
===NetFlow=== | ===NetFlow=== | ||
Line 17: | Line 26: | ||
netflow_host = 0.0.0.0 | netflow_host = 0.0.0.0 | ||
netflow_sampling_ratio = 1 | netflow_sampling_ratio = 1 | ||
− | |||
− | |||
− | |||
− | |||
===Graphite=== | ===Graphite=== |
Revision as of 21:13, 8 March 2016
High performance DoS/DDoS load analyzer. Kan lyssna på bl.a. Netflow, IPFIX, sFLOW, PCAP, SPAN och PF_RING. Om en överbelastningsattack upptäcks exekveras ett script. Vad scriptet gör avgör du själv, t.ex. maila/SMSa admin eller null routa prefix med ExaBGP.
Installation
Debian, Ubuntu, CentOS, Fedora
wget https://raw.githubusercontent.com/pavel-odintsov/fastnetmon/master/src/fastnetmon_install.pl -Ofastnetmon_install.pl sudo perl fastnetmon_install.pl
Första gången man startar det skapas konf-filer.
/opt/fastnetmon/fastnetmon --daemonize
Konfiguration
Det mesta görs i huvudkonf-filen.
nano /etc/fastnetmon.conf
Notify
Default: notify_script_path = /usr/local/bin/notify_about_attack.sh
Skapa script
nano /usr/local/bin/notify_about_attack.sh chmod +x /usr/local/bin/notify_about_attack.sh
Klient
Kolla live.
/opt/fastnetmon/fastnetmon_client
NetFlow
netflow_port = 2055 netflow_host = 0.0.0.0 netflow_sampling_ratio = 1
Graphite
Det finns även integration med Graphite.
graphite = on graphite_host = 127.0.0.1 graphite_port = 2003
Loggar
tail -f /var/log/fastnetmon.log