1312,7 → 1312,28 |
$SED "s?^LogLevel.*?LogLevel Error?g" /etc/tinyproxy/tinyproxy.conf # Only errors are logged |
$SED "s?^#Upstream.*?Upstream 127.0.0.1:8090?g" /etc/tinyproxy/tinyproxy.conf # forward to HAVP |
$SED "s?^#DisableViaHeader.*?DisableViaHeader Yes?g" /etc/tinyproxy/tinyproxy.conf # Stealth mode |
# Create the systemd unit |
cat << EOF > /lib/systemd/system/tinyproxy.service |
# This file is part of systemd. |
# |
# systemd is free software; you can redistribute it and/or modify it |
# under the terms of the GNU General Public License as published by |
# the Free Software Foundation; either version 2 of the License, or |
# (at your option) any later version. |
|
# This unit launches tinyproxy (a very light proxy). |
[Unit] |
Description=Tinyproxy Web Proxy Server |
After=network.target iptables.service |
|
[Service] |
Type=forking |
ExecStart=/usr/sbin/tinyproxy -c /etc/tinyproxy/tinyproxy.conf |
|
[Install] |
WantedBy=multi-user.target |
EOF |
|
} # end of tinyproxy |
################################################################################## |
## function "ulogd" ## |
1415,15 → 1436,16 |
systemctl start nfsen |
/bin/nfsen -m live -e 62d 2>/dev/null |
# add SURFmap plugin |
tar xzf $DIR_CONF/nfsen/SURFmap_v3.3.1.tar.gz -C /tmp/ |
cp $DIR_CONF/nfsen/install-surfmap.sh /tmp/SURFmap/install.sh |
cd /tmp/SURFmap |
cp $DIR_CONF/nfsen/SURFmap_v3.3.1.tar.gz /tmp/ |
tar xzf /tmp/SURFmap_v3.3.1.tar.gz -C /tmp/ |
cp $DIR_CONF/nfsen/GeoLiteCity* /tmp/SURFmap/ |
cd /tmp/SURFmap/ |
/usr/bin/sh install.sh |
|
# clear the installation |
cd $DirTmp |
rm -rf /tmp/nfsen-1.3.6p1/ |
rm -rf /tmp/SURFmap/ |
rm -rf /tmp/nfsen* |
rm -rf /tmp/SURFmap* |
} # End of nfsen () |
|
################################################## |
1840,13 → 1862,8 |
[Install] |
WantedBy=multi-user.target |
EOF |
# processes launched at boot time (SYSV) |
for i in tinyproxy |
do |
/sbin/chkconfig --add $i |
done |
# processes launched at boot time (Systemctl) |
for i in alcasar-load_balancing mysqld httpd ntpd iptables dnsmasq dnsmasq-blacklist dnsmasq-whitelist dnsmasq-blackhole radiusd nfsen dansguardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access chilli fail2ban havp |
for i in alcasar-load_balancing mysqld httpd ntpd iptables dnsmasq dnsmasq-blacklist dnsmasq-whitelist dnsmasq-blackhole radiusd nfsen dansguardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access chilli fail2ban havp tinyproxy |
do |
systemctl -q enable $i.service |
done |