root@amon25.maket-labo.local:~# bash -x /etc/init.d/bastion restart + RETVAL=0 + '[' xterm = dumb ']' + . /lib/lsb/init-functions +++ run-parts --lsbsysinit --list /lib/lsb/init-functions.d ++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)' ++ '[' -r /lib/lsb/init-functions.d/01-upstart-lsb ']' ++ . /lib/lsb/init-functions.d/01-upstart-lsb +++ unset UPSTART_SESSION +++ _RC_SCRIPT=/etc/init.d/bastion +++ '[' -r /etc/init//etc/init.d/bastion.conf ']' +++ _UPSTART_JOB=bastion +++ '[' -r /etc/init/bastion.conf ']' ++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)' ++ '[' -r /lib/lsb/init-functions.d/20-left-info-blocks ']' ++ . /lib/lsb/init-functions.d/20-left-info-blocks ++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)' ++ '[' -r /lib/lsb/init-functions.d/50-ubuntu-logging ']' ++ . /lib/lsb/init-functions.d/50-ubuntu-logging +++ LOG_DAEMON_MSG= ++ FANCYTTY= ++ '[' -e /etc/lsb-base-logging.sh ']' ++ true + export TPUT=/usr/bin/tput + TPUT=/usr/bin/tput + export EXPR=/usr/bin/expr + EXPR=/usr/bin/expr + '[' '!' xterm = '' ']' + /usr/bin/tput hpa 60 + /usr/bin/tput setaf 1 + FANCYTTY=1 ++ /usr/bin/tput cols + COLS=193 + '[' 193 ']' + '[' 193 -gt 6 ']' ++ /usr/bin/expr 193 - 7 + COL=186 + export COL + LOCKBASTION=/var/lock/bastion + CACHE=/etc/eole/iptables + CACHEMOD=/etc/eole/bastion-modules + CACHESET=/etc/eole/ipset + CACHEINCLUSION=/etc/eole/inclusion_statique + TCPWRAPPER=/etc/eole/hosts.allow + TCPWRAPPER_DEST=/etc/hosts.allow + INITQOS=/etc/init.d/qoseole + CONFQOS=/etc/qoseole.conf + LOCKQOS=/var/lock/qoseole + INITRVP=strongswan + INITRVP_AMON=/etc/init.d/rvp ++ CreoleGet install_rvp non + install_rvp=oui + '[' oui = oui ']' ++ CreoleGet sw_database_mode + '[' non = oui ']' + CONFRVP=/etc/ipsec.secrets + LOCKRVPDIR=/var/lock/subsys + LOCKRVP=/var/lock/subsys/ipsec + INITAGR=/etc/init.d/agregation + CONFAGR=/etc/agregation.conf + LOCKAGR=/var/lock/agregation + '[' xterm = dumb ']' + case "$1" in + stop yes + silent=yes + logit 'Stopping firewall: bastion' + /usr/bin/logger -t bastion -p local2.info 'Stopping firewall: bastion' + '[' '!' -x /usr/sbin/ferme.firewall ']' + test_iptables + '[' '!' -x /sbin/iptables ']' + iptables -nL + '[' 0 -ne 0 ']' + /usr/sbin/ferme.firewall yes * Réinitialisation du pare-feu * Activation du mode forteresse sur eth0 * Activation du mode forteresse sur eth1 * Activation du mode forteresse sur eth2 * Activation du mode forteresse sur eth3 * Activation du mode forteresse sur eth4 + RETVAL=0 + log_end_msg 0 + '[' -z 0 ']' + '[' 186 ']' + '[' -x /usr/bin/tput ']' + log_use_plymouth + '[' n = y ']' + plymouth --ping + printf '\r' + /usr/bin/tput hpa 186 + '[' 0 -eq 0 ']' + echo '[ OK ]' [ OK ] + return 0 + stopother + '[' -e /var/lock/qoseole ']' + '[' -e /var/lock/agregation ']' + logit 'Arrêt des règles d'\''agrégation' + /usr/bin/logger -t bastion -p local2.info 'Arrêt des règles d'\''agrégation' + /etc/init.d/agregation stop * Arret du service Agregation [ OK ] + '[' -e /var/lock/subsys/ipsec ']' + logit 'Arrêt des tunnels RVP' + /usr/bin/logger -t bastion -p local2.info 'Arrêt des tunnels RVP' + '[' -e /etc/init.d/rvp ']' + /etc/init.d/rvp stop * Arret du Reseau Virtuel Privé [ OK ] + '[' 0 -eq 0 ']' + rm -f /var/lock/bastion + return 0 + '[' 0 -ne 0 ']' + firewall_start + '[' -e /var/lock/bastion ']' + test_iptables + '[' '!' -x /sbin/iptables ']' + iptables -nL + '[' 0 -ne 0 ']' + '[' '!' -x /usr/share/eole/firewall.start ']' + echo -n ' * Regénération des règles de pare-feu' * Regénération des règles de pare-feu+ . /usr/share/eole/firewall.start ++ RETVAL=0 +++ CreoleGet type_amon '' ++ type_amon=5zones-AixMars ++ CACHEMOD=/etc/eole/bastion-modules +++ CreoleGet mode_conteneur_actif ++ mode_conteneur_actif=non ++ '[' '!' 0 -eq 0 ']' ++ rm -f /etc/eole/bastion-modules ++ '[' '!' 5zones-AixMars = '' ']' ++ . /usr/lib/eole/ihm.sh +++ TPUT=/usr/bin/tput +++ '[' '!' xterm = '' ']' +++ /usr/bin/tput hpa 60 +++ /usr/bin/tput setaf 1 +++ FANCYTTY=1 ++ '[' -f /usr/share/era/modeles/5zones-AixMars.xml ']' ++ echo -n ' (modèle "5zones-AixMars")' (modèle "5zones-AixMars")++ /usr/share/era/bastion.sh Les horaires de pare-feu ne sont plus pris en compte : le fichier /var/lib/eole/config/horaires.txt est ignoré ++ '[' '!' 0 -eq 0 ']' ++ '[' -x /usr/share/eole/bastion/data/90-lxc_rules ']' ++ grep -h modprobe /sbin/lance.firewall ++ '[' 0 = 0 ']' ++ '[' non = oui ']' ++ '[' -f /usr/share/era/postes_interdits.py ']' ++ python /usr/share/era/postes_interdits.py ++ /sbin/iptables-save +++ command -v ipset ++ '[' /sbin/ipset ']' ++ ipset save ++ '[' non = oui ']' ++ /bin/run-parts --exit-on-error /usr/share/eole/bastion/post_cache +++ date +%s ++ echo '# -*- coding: UTF-8 -*- DATE="1491581049" STATUS="0" MSG=""' ++ return 0 + RETVAL=0 + log_end_msg 0 + '[' -z 0 ']' + '[' 186 ']' + '[' -x /usr/bin/tput ']' + log_use_plymouth + '[' n = y ']' + plymouth --ping + printf '\r' + /usr/bin/tput hpa 186 + '[' 0 -eq 0 ']' + echo '[ OK ]' [ OK ] + return 0 + return 0 + RETVAL=0 + MSG='Mise en cache des règles de pare-feu' + '[' 0 -eq 0 ']' + logit2 'Mise en cache des règles de pare-feu' + FAILURE= + logit 'Mise en cache des règles de pare-feu' + /usr/bin/logger -t bastion -p local2.info 'Mise en cache des règles de pare-feu' + log_begin_msg 'Mise en cache des règles de pare-feu' + log_daemon_msg 'Mise en cache des règles de pare-feu' + '[' -z 'Mise en cache des règles de pare-feu' ']' + log_use_fancy_output + TPUT=/usr/bin/tput + EXPR=/usr/bin/expr + '[' -t 1 ']' + '[' xxterm '!=' x ']' + '[' xxterm '!=' xdumb ']' + '[' -x /usr/bin/tput ']' + '[' -x /usr/bin/expr ']' + /usr/bin/tput hpa 60 + /usr/bin/tput setaf 1 + '[' -z 1 ']' + true + case "$FANCYTTY" in + true + /usr/bin/tput xenl ++ /usr/bin/tput cols + COLS=193 + '[' 193 ']' + '[' 193 -gt 6 ']' ++ /usr/bin/expr 193 - 7 + COL=186 + log_use_plymouth + '[' n = y ']' + plymouth --ping + printf ' * Mise en cache des règles de pare-feu ' * Mise en cache des règles de pare-feu ++ /usr/bin/expr 193 - 1 + /usr/bin/tput hpa 192 + printf ' ' + '[' '' = failed ']' + log_end_msg 0 + '[' -z 0 ']' + '[' 186 ']' + '[' -x /usr/bin/tput ']' + log_use_plymouth + '[' n = y ']' + plymouth --ping + printf '\r' + /usr/bin/tput hpa 186 + '[' 0 -eq 0 ']' + echo '[ OK ]' [ OK ] + return 0 + start + '[' -e /var/lock/bastion ']' + '[' '!' -e /etc/eole/iptables ']' + '[' '!' -d /var/lock/subsys ']' + MSG='Restauration des règles de pare-feu en cache' + logit2 'Restauration des règles de pare-feu en cache' + FAILURE= + logit 'Restauration des règles de pare-feu en cache' + /usr/bin/logger -t bastion -p local2.info 'Restauration des règles de pare-feu en cache' + log_begin_msg 'Restauration des règles de pare-feu en cache' + log_daemon_msg 'Restauration des règles de pare-feu en cache' + '[' -z 'Restauration des règles de pare-feu en cache' ']' + log_use_fancy_output + TPUT=/usr/bin/tput + EXPR=/usr/bin/expr + '[' -t 1 ']' + '[' xxterm '!=' x ']' + '[' xxterm '!=' xdumb ']' + '[' -x /usr/bin/tput ']' + '[' -x /usr/bin/expr ']' + /usr/bin/tput hpa 60 + /usr/bin/tput setaf 1 + '[' -z 1 ']' + true + case "$FANCYTTY" in + true + /usr/bin/tput xenl ++ /usr/bin/tput cols + COLS=193 + '[' 193 ']' + '[' 193 -gt 6 ']' ++ /usr/bin/expr 193 - 7 + COL=186 + log_use_plymouth + '[' n = y ']' + plymouth --ping + printf ' * Restauration des règles de pare-feu en cache ' * Restauration des règles de pare-feu en cache ++ /usr/bin/expr 193 - 1 + /usr/bin/tput hpa 192 + printf ' ' + '[' '' = failed ']' + test_iptables + '[' '!' -x /sbin/iptables ']' + iptables -nL + '[' 0 -ne 0 ']' + '[' -f /etc/eole/bastion-modules ']' + sh /etc/eole/bastion-modules + '[' -f /etc/eole/ipset ']' + ipset restore -exist + iptables-restore + RETVAL=0 + '[' -f /etc/eole/inclusion_statique ']' + sh /etc/eole/inclusion_statique iptables: No chain/target/match by that name. iptables: No chain/target/match by that name. ++ CreoleGet mode_conteneur_actif + '[' non = oui ']' + '[' -f /etc/eole/hosts.allow ']' + /bin/cp -f /etc/eole/hosts.allow /etc/hosts.allow + /bin/run-parts /usr/share/eole/bastion/post_cache + log_end_msg 0 + '[' -z 0 ']' + '[' 186 ']' + '[' -x /usr/bin/tput ']' + log_use_plymouth + '[' n = y ']' + plymouth --ping + printf '\r' + /usr/bin/tput hpa 186 + '[' 0 -eq 0 ']' + echo '[ OK ]' [ OK ] + return 0 + '[' 0 -eq 0 ']' + touch /var/lock/bastion + '[' -e /etc/qoseole.conf ']' + '[' -e /etc/agregation.conf ']' + '[' -x /etc/init.d/agregation ']' + logit 'Mise en place des règles d'\''agrégation' + /usr/bin/logger -t bastion -p local2.info 'Mise en place des règles d'\''agrégation' + /etc/init.d/agregation start * Démarrage du service Agregation [ OK ] + '[' -e /etc/ipsec.secrets ']' + '[' oui = oui ']' + logit 'Mise en place des règles RVP' + /usr/bin/logger -t bastion -p local2.info 'Mise en place des règles RVP' + '[' -e /etc/init.d/rvp ']' + /etc/init.d/rvp start * Lancement du Reseau Virtuel Privé [ OK ] + return 0 + exit 0