Subversion Repositories ALCASAR

Rev

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

Rev 1547 Rev 1548
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1547 2014-12-23 17:25:24Z richard $ 
2
#  $Id: alcasar.sh 1548 2014-12-28 15:39:18Z 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 1821... Line 1821...
1821
	$SED "s?^Banner.*?Banner /etc/ssh/alcasar-banner-ssh?g" /etc/ssh/sshd_config
1821
	$SED "s?^Banner.*?Banner /etc/ssh/alcasar-banner-ssh?g" /etc/ssh/sshd_config
1822
	$SED "s?^#Banner.*?Banner /etc/ssh/alcasar-banner-ssh?g" /etc/ssh/sshd_config
1822
	$SED "s?^#Banner.*?Banner /etc/ssh/alcasar-banner-ssh?g" /etc/ssh/sshd_config
1823
# postfix banner anonymisation
1823
# postfix banner anonymisation
1824
	$SED "s?^smtpd_banner =.*?smtpd_banner = $myhostname ESMTP?g" /etc/postfix/main.cf
1824
	$SED "s?^smtpd_banner =.*?smtpd_banner = $myhostname ESMTP?g" /etc/postfix/main.cf
1825
# sshd écoute côté LAN et WAN
1825
# sshd écoute côté LAN et WAN
1826
	$SED "s?^#ListenAddress.*?ListenAddress 0\.0\.0\.0?g" /etc/ssh/sshd_config
1826
	$SED "s?^#ListenAddress 0\.0\.0\.0.*?ListenAddress 0\.0\.0\.0?g" /etc/ssh/sshd_config
1827
	# Put the default value in conf file (sshd, QOS and protocols/dns/ are off)(web antivirus is on)
1827
	# Put the default value in conf file (sshd, QOS and protocols/dns/ are off)(web antivirus is on)
1828
	echo "SSH=off" >> $CONF_FILE
1828
	echo "SSH=off" >> $CONF_FILE
1829
	echo 'SSH_ADMIN_FROM=0.0.0.0/0.0.0.0' >> $CONF_FILE
1829
	echo 'SSH_ADMIN_FROM=0.0.0.0/0.0.0.0' >> $CONF_FILE
1830
	echo "QOS=off" >> $CONF_FILE
1830
	echo "QOS=off" >> $CONF_FILE
1831
	echo "LDAP=off" >> $CONF_FILE
1831
	echo "LDAP=off" >> $CONF_FILE