Subversion Repositories ALCASAR

Rev

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

Rev 3191 Rev 3192
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 3191 2024-04-14 22:31:49Z rexy $
2
#  $Id: alcasar.sh 3192 2024-04-18 22:33:57Z 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, unbound, gammu, 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, unbound, gammu, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
6
# contact : info@alcasar.net
6
# contact : info@alcasar.net
7
 
7
 
Line 917... Line 917...
917
##                     "time_server"                       ##
917
##                     "time_server"                       ##
918
## - Configuring NTP server                                ##
918
## - Configuring NTP server                                ##
919
#############################################################
919
#############################################################
920
time_server()
920
time_server()
921
{
921
{
-
 
922
[ -e /etc/ntp.conf.default ] || cp /etc/ntp.conf /etc/ntp.conf.default
-
 
923
$SED "s?^pool.*?pool fr.pool.ntp.org iburst?g" /etc/ntp.conf
-
 
924
$SED '$ainterface ignore wildcard' /etc/ntp.conf
-
 
925
$SED '$ainterface listen lo' /etc/ntp.conf
-
 
926
$SED '$ainterface listen $INTIF' /etc/ntp.conf
922
# Synchronize now
927
# Synchronize now
923
	ntpdate pool.ntp.org &
928
	ntpdate fr.pool.ntp.org &
924
} # End of time_server()
929
} # End of time_server()
925
 
930
 
926
#####################################################################
931
#####################################################################
927
##                           "init_db"                             ##
932
##                           "init_db"                             ##
928
## - Mysql initialization                                          ##
933
## - Mysql initialization                                          ##