Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 1133 2013-06-25 20:52:15Z franck $
|
2 |
# $Id: alcasar.sh 1144 2013-07-01 08:21:20Z franck $
|
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 1308... |
Line 1308... |
1308 |
# Start after chilli (65) which create tun0
|
1308 |
# Start after chilli (65) which create tun0
|
1309 |
$SED "s?^# chkconfig:.*?# chkconfig: 2345 99 40?g" /etc/init.d/dnsmasq
|
1309 |
$SED "s?^# chkconfig:.*?# chkconfig: 2345 99 40?g" /etc/init.d/dnsmasq
|
1310 |
# Optionnellement on pré-active les logs DNS des clients
|
1310 |
# Optionnellement on pré-active les logs DNS des clients
|
1311 |
[ -e /etc/sysconfig/dnsmasq.default ] || cp /etc/sysconfig/dnsmasq /etc/sysconfig/dnsmasq.default
|
1311 |
[ -e /etc/sysconfig/dnsmasq.default ] || cp /etc/sysconfig/dnsmasq /etc/sysconfig/dnsmasq.default
|
1312 |
$SED "s?log-facility?#OPTIONS=\"-q --log-facility=/var/log/dnsmasq/queries.log\"?g" /etc/sysconfig/dnsmasq
|
1312 |
$SED "s?log-facility?#OPTIONS=\"-q --log-facility=/var/log/dnsmasq/queries.log\"?g" /etc/sysconfig/dnsmasq
|
- |
|
1313 |
# Optionnellement, exemple de paramètre supplémentaire pour le cache memoire
|
- |
|
1314 |
echo '#OPTIONS="$OPTIONS --cache-size=250"' >> /etc/sysconfig/dnsmasq
|
1313 |
# Optionnellement, exemple de configuration avec un A.D.
|
1315 |
# Optionnellement, exemple de configuration avec un A.D.
|
1314 |
echo '#OPTIONS="$OPTIONS --server=/your.domain/192.168.182.2"' >> /etc/sysconfig/dnsmasq
|
1316 |
echo '#OPTIONS="$OPTIONS --server=/your.domain/192.168.182.3"' >> /etc/sysconfig/dnsmasq
|
1315 |
} # End dnsmasq
|
1317 |
} # End dnsmasq
|
1316 |
|
1318 |
|
1317 |
##########################################################
|
1319 |
##########################################################
|
1318 |
## Fonction BL (BlackList) ##
|
1320 |
## Fonction BL (BlackList) ##
|
1319 |
##########################################################
|
1321 |
##########################################################
|