J'ai malgré tout avancé un peu...
quand je vais dans les logs de cron j'ai ceci :
- Code: Tout sélectionner
23:50:00 fcron Job /usr/local/bin/timecheck > /dev/null 2>&1 started for user root (pid 8533)
23:50:00 fcron Job /usr/local/sbin/vpn-watch.sh terminated (exit status: 1)
mes chmod sont bien en 755
le nom est correct dans crontab ainsi que le chemin mais que me manque t- il ?
EDIT :
Suite et fin du monologue. j'ai fini par avancer et découvrir que j'avai "bêtement" recopié ds cron le texte que l'on ma donné plus haut hors il n'y avai pas la commande start. et forcément le scirpt ne se lançait pas
je suis désormais a nouveau bloqué sur ceci :
00:15:08 ipsec_setup Stopping Openswan IPsec...
00:15:08 ipsec_setup stop ordered, but IPsec does not appear to be running!
00:15:08 ipsec_setup doing cleanup anyway...
00:15:08 ipsec_setup: ipsec Device or resource busy
00:15:08 ipsec_setup ...Openswan IPsec stopped
00:15:08 ipsec_setup Starting Openswan IPsec 1.0.9...
00:15:09 ipsec_setup KLIPS debug `none'
00:15:09 ipsec_setup KLIPS ipsec0 on ppp0 86.193.1.235/255.255.255.255 pointopoint 193.253.160.3
00:15:09 ipsec__plutorun Starting Pluto subsystem...
00:15:09 ipsec_setup ...Openswan IPsec started
00:15:09 pluto[528] Starting Pluto (Openswan Version 1.0.9)
00:15:09 pluto[528] including X.509 patch with traffic selectors (Version 0.9.42)
00:15:09 pluto[528] including NAT-Traversal patch (Version 0.6)
00:15:09 pluto[528] ike_alg_register_enc(): Activating OAKLEY_AES_CBC: Ok (ret=0)
00:15:09 pluto[528] ike_alg_register_enc(): Activating OAKLEY_BLOWFISH_CBC: Ok (ret=0)
00:15:09 pluto[528] ike_alg_register_enc(): Activating OAKLEY_CAST_CBC: Ok (ret=0)
00:15:09 pluto[528] ike_alg_register_enc(): Activating OAKLEY_SERPENT_CBC: Ok (ret=0)
00:15:09 pluto[528] ike_alg_register_hash(): Activating OAKLEY_SHA2_256: Ok (ret=0)
00:15:09 pluto[528] ike_alg_register_hash(): Activating OAKLEY_SHA2_512: Ok (ret=0)
00:15:09 pluto[528] ike_alg_register_enc(): Activating OAKLEY_TWOFISH_CBC: Ok (ret=0)
00:15:09 pluto[528] ike_alg_register_enc(): Activating OAKLEY_SSH_PRIVATE_65289: Ok (ret=0)
00:15:09 pluto[528] Changing to directory '/etc/ipsec.d/cacerts'
00:15:09 pluto[528] loaded cacert file 'cakey.pem' (1679 bytes)
00:15:09 pluto[528] error in X.509 certificate
00:15:09 pluto[528] loaded cacert file 'cacert.pem' (1285 bytes)
00:15:09 pluto[528] Changing to directory '/etc/ipsec.d/crls'
00:15:09 pluto[528] loaded crl file 'cacrl.pem' (568 bytes)
00:15:09 pluto[528] OpenPGP certificate file '/etc/pgpcert.pgp' not found
00:15:09 pluto[528] | from whack: got --esp=3des
00:15:09 pluto[528] | from whack: got --ike=3des
00:15:09 pluto[528] added connection description "saveftp"
00:15:09 pluto[528] listening for IKE messages
00:15:09 pluto[528] adding interface ipsec0/ppp0 86.193.1.235
00:15:09 pluto[528] adding interface ipsec0/ppp0 86.193.1.235:4500
00:15:09 pluto[528] loading secrets from "/etc/ipsec.secrets"
00:15:09 pluto[528] loaded private key file '/var/ipcop/certs/hostkey.pem' (891 bytes)
00:15:10 ipsec__plutorun: 022 "saveftp" we have no ipsecN interface for either end of this connection
00:15:10 ipsec__plutorun ...could not route conn "saveftp"
00:15:10 pluto[528] "saveftp": we have no ipsecN interface for either end of this connection
00:15:10 ipsec__plutorun: 022 "saveftp" we have no ipsecN interface for either end of this connection
00:15:10 ipsec__plutorun ...could not start conn "saveftp"
j'ai par ailleurs un problème avec le scirpt quand je vais en putty et que je lui demande son statut il me dit que chacune des de mes connexions ont démarré 0 fois (forcément j'ai un problème :p)
à la seconde demande de statut les lignes sont doublées... :
connection "1" restarted 0 times
connection "1" restarted 0 times
connection "2" restarted 0 times
connection "2" restarted 0 times
connection "4" restarted 0 times
connection "4" restarted 0 times
connection "6" restarted 0 times
connection "6" restarted 0 times
je vous remercie de votre future aide car la je ne sais vraimment plus quoi faire
Bonne nuit !