Subversion Repositories ALCASAR

Rev

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

Rev 3193 Rev 3194
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 3193 2024-04-21 22:33:19Z rexy $
2
#  $Id: alcasar.sh 3194 2024-04-22 23:01:27Z 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 1364... Line 1364...
1364
# change the google safesearch ("safe=strict" instead of "safe=vss")
1364
# change the google safesearch ("safe=strict" instead of "safe=vss")
1365
	$SED "s?safe=vss?safe=strict?g" $DIR_GROUP1/urlregexplist
1365
	$SED "s?safe=vss?safe=strict?g" $DIR_GROUP1/urlregexplist
1366
 
1366
 
1367
# Create & adapt group2 conf file (av + av_wl)
1367
# Create & adapt group2 conf file (av + av_wl)
1368
	cp $DIR_DG/e2guardianf1.conf.default $DIR_DG/e2guardianf2.conf
1368
	cp $DIR_DG/e2guardianf1.conf.default $DIR_DG/e2guardianf2.conf
1369
	$SED "s?^reportinglevel =.*?reportinglevel = 3?g" $DIR_DG/e2guardianf2.conf
1369
	$SED "s?^#reportinglevel =.*?reportinglevel = 3?g" $DIR_DG/e2guardianf2.conf
1370
	$SED "s?^groupname =.*?groupname = 'antimalware + whitelested users'?g" $DIR_DG/e2guardianf2.conf
1370
	$SED "s?^#groupname =.*?groupname = 'antimalware + whitelested users'?g" $DIR_DG/e2guardianf2.conf
1371
	$SED "s?^urllist = 'name=banned,messageno=501,path=__LISTEN__/bannedurllist'?urllist = 'name=banned,messageno=501,path=__LISTEN__/bannedurllist.default'?g" $DIR_DG/e2guardianf2.conf # no banned urls
1371
	$SED "s?^urllist = 'name=banned,messageno=501,path=__LISTDIR__/bannedurllist'?urllist = 'name=banned,messageno=501,path=__LISTDIR__/bannedurllist.default'?g" $DIR_DG/e2guardianf2.conf # no banned urls
1372
 
1372
 
1373
# create log folder
1373
# create log folder
1374
	mkdir -p /var/log/e2guardian
1374
	mkdir -p /var/log/e2guardian
1375
	chown -R e2guardian /etc/e2guardian /var/log/e2guardian
1375
	chown -R e2guardian /etc/e2guardian /var/log/e2guardian
1376
} # End of e2guardian()
1376
} # End of e2guardian()