25,13 → 25,13 |
echo "Configure eth1 ..." |
ifup eth1 |
sh /usr/local/bin/alcasar-iptables-bypass.sh |
if ! (pgrep dhcpd) > /dev/null ; then /etc/init.d/dhcpd start ; fi |
if ! (pgrep dnsmasq) > /dev/null ; then /etc/init.d/dnsmasq start ; fi |
echo "Le contournement du module d'authentification et de filtrage WEB est activé" |
echo "les journaux du parefeu continuent néanmoins d'être enregistrés" |
;; |
-off) |
# désactivation du contournement |
if (pgrep dhcpd) > /dev/null ; then /etc/init.d/dhcpd stop ; fi |
if (pgrep dnsmasq) > /dev/null ; then /etc/init.d/dnsmasq stop ; fi |
for i in chilli squid dansguardian httpd mysqld radiusd |
do |
if ! (pgrep $i) > /dev/null ; then /etc/init.d/$i start ; fi |