Subversion Repositories ALCASAR

Rev

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

Rev 2882 Rev 2884
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2882 2020-11-15 17:15:06Z rexy $
2
#  $Id: alcasar.sh 2884 2020-11-16 22:12:53Z rexy $
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
# ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
5
# ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
#  team@alcasar.net
7
#  team@alcasar.net
Line 1115... Line 1115...
1115
	start)
1115
	start)
1116
		if [ -f \$pidfile ] ; then
1116
		if [ -f \$pidfile ] ; then
1117
			gprintf "chilli is already running"
1117
			gprintf "chilli is already running"
1118
		else
1118
		else
1119
			gprintf "Starting \$prog: "
1119
			gprintf "Starting \$prog: "
1120
			echo '' > \$current_users_file && chown apache:apache \$current_users_file
1120
			echo '' > \$current_users_file && chown root:apache \$current_users_file && chmod 660 \$current_users_file
1121
			rm -f /run/chilli* # cleaning
1121
			rm -f /run/chilli* # cleaning
1122
			/usr/sbin/modprobe tun >/dev/null 2>&1
1122
			/usr/sbin/modprobe tun >/dev/null 2>&1
1123
			echo 1 > /proc/sys/net/ipv4/ip_forward
1123
			echo 1 > /proc/sys/net/ipv4/ip_forward
1124
			[ -e /dev/net/tun ] || {
1124
			[ -e /dev/net/tun ] || {
1125
				(cd /dev;
1125
				(cd /dev;