Subversion Repositories ALCASAR

Rev

Rev 3077 | Rev 3093 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3077 Rev 3079
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 3077 2022-10-12 17:32:07Z rexy $
2
#  $Id: alcasar.sh 3079 2022-10-14 17:17:17Z rexy $
3
 
3
 
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, dnsmasq, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, dnsmasq, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
6
# contact : info@alcasar.net
6
# contact : info@alcasar.net
7
 
7
 
Line 1462... Line 1462...
1462
[Unit]
1462
[Unit]
1463
Description=Netflow Capture Daemon
1463
Description=Netflow Capture Daemon
1464
After=network-online.target iptables.service
1464
After=network-online.target iptables.service
1465
 
1465
 
1466
[Service]
1466
[Service]
1467
Type=exec
1467
Type=simple
1468
ExecStartPre=/bin/mkdir -p /run/nfcapd
1468
ExecStartPre=/bin/mkdir -p /run/nfcapd
1469
ExecStartPre=/bin/chown nfcapd:nfcapd /run/nfcapd
1469
ExecStartPre=/bin/chown nfcapd:nfcapd /run/nfcapd
1470
PIDFile=/run/nfcapd/nfcapd.pid
1470
PIDFile=/run/nfcapd/nfcapd.pid
1471
ExecStart=/usr/bin/nfcapd -w -D -b 127.0.0.1 -p 2055 -u nfcapd -g nfcapd -B 200000 -t 300 -S 7 -z -P /run/nfcapd/nfcapd.pid -I alcasar_netflow -l /var/log/nfsen/profiles-data/live/alcasar_netflow
1471
ExecStart=/usr/bin/nfcapd -D -b 127.0.0.1 -p 2055 -u nfcapd -g nfcapd -B 200000 -t 300 -S 7 -z -P /run/nfcapd/nfcapd.pid -I alcasar_netflow -w /var/log/nfsen/profiles-data/live/alcasar_netflow
1472
ExecReload=/bin/kill -HUP $MAINPID
1472
ExecReload=/bin/kill -HUP $MAINPID
1473
 
1473
 
1474
[Install]
1474
[Install]
1475
WantedBy=multi-user.target
1475
WantedBy=multi-user.target
1476
EOF
1476
EOF