Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 679 2011-07-21 17:53:48Z richard $
|
2 |
# $Id: alcasar.sh 694 2011-08-03 04:38:09Z franck $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
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 |
|
7 |
|
Line 1263... |
Line 1263... |
1263 |
$SED "s?^#ListenAddress 0\.0\.0\.0?ListenAddress $PRIVATE_IP?g" /etc/ssh/sshd_config
|
1263 |
$SED "s?^#ListenAddress 0\.0\.0\.0?ListenAddress $PRIVATE_IP?g" /etc/ssh/sshd_config
|
1264 |
$SED "/^ListenAddress $PRIVATE_IP/a\ListenAddress $PUBLIC_IP" /etc/ssh/sshd_config
|
1264 |
$SED "/^ListenAddress $PRIVATE_IP/a\ListenAddress $PUBLIC_IP" /etc/ssh/sshd_config
|
1265 |
# Put the default value in conf file (sshd, QOS, protocols filter and dns filter are off)(web antivirus is on)
|
1265 |
# Put the default value in conf file (sshd, QOS, protocols filter and dns filter are off)(web antivirus is on)
|
1266 |
/sbin/chkconfig --del sshd
|
1266 |
/sbin/chkconfig --del sshd
|
1267 |
echo "SSH=off" >> $CONF_FILE
|
1267 |
echo "SSH=off" >> $CONF_FILE
|
- |
|
1268 |
echo 'Admin_from_IP="0.0.0.0/0.0.0.0"' >> $CONF_FILE
|
1268 |
echo "QOS=off" >> $CONF_FILE
|
1269 |
echo "QOS=off" >> $CONF_FILE
|
1269 |
echo "LDAP=off" >> $CONF_FILE
|
1270 |
echo "LDAP=off" >> $CONF_FILE
|
- |
|
1271 |
echo "LDAP_IP=0.0.0.0" >> $CONF_FILE
|
1270 |
echo "PROTOCOLS_FILTERING=off" >> $CONF_FILE
|
1272 |
echo "PROTOCOLS_FILTERING=off" >> $CONF_FILE
|
1271 |
echo "DNS_FILTERING=off" >> $CONF_FILE
|
1273 |
echo "DNS_FILTERING=off" >> $CONF_FILE
|
1272 |
echo "WEB_ANTIVIRUS=on" >> $CONF_FILE
|
1274 |
echo "WEB_ANTIVIRUS=on" >> $CONF_FILE
|
1273 |
# Coloration des prompts
|
1275 |
# Coloration des prompts
|
1274 |
[ -e /etc/bashrc.default ] || cp /etc/bashrc /etc/bashrc.default
|
1276 |
[ -e /etc/bashrc.default ] || cp /etc/bashrc /etc/bashrc.default
|