Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 1366 2014-05-29 09:21:47Z richard $
|
2 |
# $Id: alcasar.sh 1369 2014-06-03 16:23:07Z richard $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
|
5 |
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
Line 1130... |
Line 1130... |
1130 |
[ -d /var/log/firewall ] || mkdir -p /var/log/firewall
|
1130 |
[ -d /var/log/firewall ] || mkdir -p /var/log/firewall
|
1131 |
nl=1
|
1131 |
nl=1
|
1132 |
for log_type in traceability ssh ext-access
|
1132 |
for log_type in traceability ssh ext-access
|
1133 |
do
|
1133 |
do
|
1134 |
[ -e /lib/systemd/system/ulogd-$log_type.service ] || cp -f /lib/systemd/system/ulogd.service /lib/systemd/system/ulogd-$log_type.service
|
1134 |
[ -e /lib/systemd/system/ulogd-$log_type.service ] || cp -f /lib/systemd/system/ulogd.service /lib/systemd/system/ulogd-$log_type.service
|
1135 |
/var/log/firewall/$log_type.log ] || echo "" > /var/log/firewall/$log_type.log
|
1135 |
[ -e /var/log/firewall/$log_type.log ] || echo "" > /var/log/firewall/$log_type.log
|
1136 |
cp -f /etc/ulogd.conf /etc/ulogd-$log_type.conf
|
1136 |
cp -f /etc/ulogd.conf /etc/ulogd-$log_type.conf
|
1137 |
$SED "s?^nlgroup=.*?nlgroup=$nl?g" /etc/ulogd-$log_type.conf
|
1137 |
$SED "s?^nlgroup=.*?nlgroup=$nl?g" /etc/ulogd-$log_type.conf
|
1138 |
$SED '/OPRINT/,$d' /etc/ulogd-$log_type.conf
|
1138 |
$SED '/OPRINT/,$d' /etc/ulogd-$log_type.conf
|
1139 |
cat << EOF >> /etc/ulogd-$log_type.conf
|
1139 |
cat << EOF >> /etc/ulogd-$log_type.conf
|
1140 |
[LOGEMU]
|
1140 |
[LOGEMU]
|