Subversion Repositories ALCASAR

Rev

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

Rev 1370 Rev 1371
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1370 2014-06-03 21:16:25Z richard $ 
2
#  $Id: alcasar.sh 1371 2014-06-03 22:08:56Z 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 894... Line 894...
894
PIDFile=/var/run/chilli.pid
894
PIDFile=/var/run/chilli.pid
895
 
895
 
896
[Install]
896
[Install]
897
WantedBy=multi-user.target
897
WantedBy=multi-user.target
898
EOF
898
EOF
-
 
899
chmod a+x /lib/systemd/system/chilli.service
899
# init file creation
900
# init file creation
900
	[ -e /etc/init.d/chilli.default ] || mv /etc/init.d/chilli /etc/init.d/chilli.default
901
	[ -e /etc/init.d/chilli.default ] || mv /etc/init.d/chilli /etc/init.d/chilli.default
901
	cat <<EOF > /usr/libexec/chilli
902
	cat <<EOF > /usr/libexec/chilli
902
#!/bin/sh
903
#!/bin/sh
903
#
904
#
Line 1534... Line 1535...
1534
 
1535
 
1535
[Install]
1536
[Install]
1536
WantedBy=multi-user.target
1537
WantedBy=multi-user.target
1537
EOF
1538
EOF
1538
# processes launched at boot time (SYSV)
1539
# processes launched at boot time (SYSV)
1539
	for i in chilli havp 
1540
	for i in havp 
1540
	do
1541
	do
1541
		/sbin/chkconfig --add $i
1542
		/sbin/chkconfig --add $i
1542
	done
1543
	done
1543
# processes launched at boot time (Systemctl)
1544
# processes launched at boot time (Systemctl)
1544
	for i in alcasar-load_balancing nfsen mysqld httpd ntpd iptables ulogd dnsmasq dnsmasq-blacklist dnsmasq-whitelist radiusd dansguardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access
1545
	for i in alcasar-load_balancing nfsen mysqld httpd ntpd iptables ulogd dnsmasq dnsmasq-blacklist dnsmasq-whitelist radiusd dansguardian freshclam ulogd-ssh ulogd-traceability ulogd-ext-access chilli
1545
	do
1546
	do
1546
		systemctl -q enable $i
1547
		systemctl -q enable $i
1547
	done
1548
	done
1548
# Apply French Security Agency (ANSSI) rules
1549
# Apply French Security Agency (ANSSI) rules
1549
# ignore ICMP broadcast (smurf attack)
1550
# ignore ICMP broadcast (smurf attack)