Ntopng installation ubuntu: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(8 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 21: | Zeile 21: | ||
==cat ntopng.conf== | ==cat ntopng.conf== | ||
<pre> | <pre> | ||
− | -W 3001 | + | -W=3001 |
-G=/var/tmp/ntopng.pid | -G=/var/tmp/ntopng.pid | ||
-F=db | -F=db | ||
Zeile 27: | Zeile 27: | ||
-i=eth0 | -i=eth0 | ||
-i=ppp0 | -i=ppp0 | ||
− | -m="192.168.240.0/21" | + | -m="192.168.240.0/21,172.20.20.0/24" |
-H | -H | ||
</pre> | </pre> | ||
==Description== | ==Description== | ||
− | *-F db - "store the historical data in sqlite format" | + | *-W=3001 - |
− | *-d /var/tmp/ntopng - "location of sqlite data" | + | *-F=db - "store the historical data in sqlite format" |
− | *-i eth0 - "listen on eth0" | + | *-d=/var/tmp/ntopng - "location of sqlite data" |
− | *-i ppp0 - "listen on ppp0" | + | *-i=eth0 - "listen on eth0" |
− | *-m "192.168.240.0/21" - "definition of the local net" | + | *-i=ppp0 - "listen on ppp0" |
+ | *-m="192.168.240.0/21" - "definition of the local net" | ||
*-H - "Disable alerts generation" | *-H - "Disable alerts generation" | ||
+ | |||
=start stop restart= | =start stop restart= | ||
*service ntopng start | *service ntopng start | ||
*service ntopng stop | *service ntopng stop | ||
*service ntopng restart | *service ntopng restart | ||
+ | |||
+ | =SSL mit Certbot= | ||
+ | Certbot installieren: | ||
+ | *apt-get -y install software-properties-common | ||
+ | *add-apt-repository -y ppa:certbot/certbot | ||
+ | *apt-get update | ||
+ | *apt-get install -y python-certbot-apache | ||
+ | Certbot ausführen: | ||
+ | *certbot certonly --standalone -d domain.de #--standalone wird nur benötigt, wenn kein apache auf port 80 läuft. | ||
+ | *cd /etc/letsencrypt/live/domain.de | ||
+ | *cat privkey*.pem cert*.pem > /usr/share/ntopng/httpdocs/ssl/ntopng-cert.pem | ||
+ | *systemctl restart ntopng.service | ||
=From:= | =From:= | ||
*http://www.nmon.net/apt-stable/ | *http://www.nmon.net/apt-stable/ |
Aktuelle Version vom 26. Oktober 2018, 18:36 Uhr
In order to use this repository do (as root)
12.04 LTS
- wget http://www.nmon.net/apt/12.04/all/apt-ntop.deb
- sudo dpkg -i apt-ntop.deb
14.04 LTS
- wget http://www.nmon.net/apt/14.04/all/apt-ntop.deb
- sudo dpkg -i apt-ntop.deb
Debian 7.6 (stable)
- wget http://www.nmon.net/apt/7.6/all/apt-ntop.deb
- sudo dpkg -i apt-ntop.deb
then run
- apt-get clean all
- apt-get update
- apt-get install pfring nprobe ntopng ntopng-data n2disk nbox
You can (optionally) install the ZC and/or DNA drivers as follows
- apt-get install pfring-drivers-zc-dkms
- apt-get install pfring-drivers-dna-dkms
create the config files
- touch /etc/ntopng/ntopng.conf /etc/ntopng/ntopng.start
cat ntopng.conf
-W=3001 -G=/var/tmp/ntopng.pid -F=db -d=/var/tmp/ntopng -i=eth0 -i=ppp0 -m="192.168.240.0/21,172.20.20.0/24" -H
Description
- -W=3001 -
- -F=db - "store the historical data in sqlite format"
- -d=/var/tmp/ntopng - "location of sqlite data"
- -i=eth0 - "listen on eth0"
- -i=ppp0 - "listen on ppp0"
- -m="192.168.240.0/21" - "definition of the local net"
- -H - "Disable alerts generation"
start stop restart
- service ntopng start
- service ntopng stop
- service ntopng restart
SSL mit Certbot
Certbot installieren:
- apt-get -y install software-properties-common
- add-apt-repository -y ppa:certbot/certbot
- apt-get update
- apt-get install -y python-certbot-apache
Certbot ausführen:
- certbot certonly --standalone -d domain.de #--standalone wird nur benötigt, wenn kein apache auf port 80 läuft.
- cd /etc/letsencrypt/live/domain.de
- cat privkey*.pem cert*.pem > /usr/share/ntopng/httpdocs/ssl/ntopng-cert.pem
- systemctl restart ntopng.service