Subversion Repositories ALCASAR

Rev

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

Rev 1395 Rev 1397
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1395 2014-06-19 16:13:27Z richard $ 
2
#  $Id: alcasar.sh 1397 2014-06-24 15:12:57Z 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 1318... Line 1318...
1318
# Add the listen port to collect netflow packet (nfcapd)
1318
# Add the listen port to collect netflow packet (nfcapd)
1319
$SED "s?'\$ziparg $extensions.*?\$ziparg $extensions -b 127.0.0.1;'?g" /usr/libexec/NfSenRC.pm 
1319
$SED "s?'\$ziparg $extensions.*?\$ziparg $extensions -b 127.0.0.1;'?g" /usr/libexec/NfSenRC.pm 
1320
# expire delay for the profile "live"
1320
# expire delay for the profile "live"
1321
	systemctl start nfsen
1321
	systemctl start nfsen
1322
	/bin/nfsen -m live -e 62d 2>/dev/null
1322
	/bin/nfsen -m live -e 62d 2>/dev/null
-
 
1323
# add SURFmap plugin
-
 
1324
	tar xzf $DIR_CONF/nfsen/SURFmap_v3.3.tar.gz -C /tmp/
-
 
1325
	cd /tmp/SURFmap
-
 
1326
	/usr/bin/sh install.sh
1323
# clear the installation
1327
# clear the installation
1324
	cd $DirTmp
1328
	cd $DirTmp
1325
	rm -rf /tmp/nfsen-1.3.6p1/
1329
	rm -rf /tmp/nfsen-1.3.6p1/
-
 
1330
	rm -rf /tmp/SURFmap/
1326
} # End of nfsen ()
1331
} # End of nfsen ()
1327
 
1332
 
1328
##################################################
1333
##################################################
1329
##		Function "dnsmasq"		##
1334
##		Function "dnsmasq"		##
1330
##################################################
1335
##################################################