On dirait qu'à un moment donné, le processus en charge d'établir la connexion VPN est tué. Soit quelque chose (une règle IPTable par exemple) bloque des paquets et force le processus de connexion à s'arrêter, soit il y a un bogue avec NetworkManager. Pour traiter la première possibilité, vérifie qu'aucun firewall n'est installé. En particulier, Firestarter n'est pas du tout compatible avec VPN, car il se plante totalement dès qu'il y a plus d'une interface réseau dans le système. Pour vérifier qu'il n'y a aucune règle IPTables: sudo iptables -L Si INPUT, OUTPUT et FORWARD sont réglées sur ACCEPT et qu'aucune règle IPTables n'est affichée, c'est bel et bien qu'il y a un bogue dans NetworkManager. En attendant avril où Ubuntu 8.04 verra le jour, il ne reste à peu près que PPTPClient comme solution simple, dans ce cas. Eric
Tobby Cleps a écrit :
Même config, voilà ce que syslog a sorti:
Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> Will activate VPN connection 'UdeM', service 'org.freedesktop.NetworkManager.ppp_starter', user_name 'cubytus', vpn_data 'ppp-connection-type / pptp / pptp-remote / vpn.cc.umontreal.ca / usepeerdns / yes / encrypt-mppe / no / encrypt-mppe-128 / yes / encrypt-mppe-stateful / yes / compress-mppc / no / compress-deflate / no / compress-bsd / no / ppp-lock / yes / ppp-auth-peer / no / ppp-refuse-eap / yes / ppp-refuse-chap / no / ppp-refuse-mschap / no / mtu / 1500 / mru / 1500 / lcp-echo-failure / 10 / lcp-echo-interval / 10 / ppp-extra / / ppp-debug / yes / usepeerdns-overtunnel / yes / routes / / use-routes / no', route ''. Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 1 of 4 (Connection Prepare) scheduled... Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 1 of 4 (Connection Prepare) ran VPN service daemon org.freedesktop.NetworkManager.ppp_starter (PID 8096) Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 1 of 4 (Connection Prepare) complete. Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 2 of 4 (Connection Prepare Wait) scheduled... Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.ppp_starter' signaled state change 1 -> 6. Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 2 of 4 (Connection Prepare Wait) waiting... Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 2 of 4 (Connection Prepare Wait) complete. Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 3 of 4 (Connect) scheduled... Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 3 of 4 (Connect) sending connect request. Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 3 of 4 (Connect) request sent, waiting for reply... Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.ppp_starter' signaled state change 6 -> 3. Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 3 of 4 (Connect) reply received. Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 4 of 4 (IP Config Get) timeout scheduled... Feb 12 20:03:29 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 3 of 4 (Connect) complete, waiting for IP configuration... Feb 12 20:03:29 Le-grand-bleu pppd[8097]: Plugin nm-pppd-plugin.so loaded. Feb 12 20:03:29 Le-grand-bleu pppd[8097]: nm-pppd-plugin: plugin initialized. Feb 12 20:03:29 Le-grand-bleu modprobe: WARNING: Not loading blacklisted module ipv6 Feb 12 20:03:29 Le-grand-bleu pppd[8101]: pppd 2.4.4 started by root, uid 0 Feb 12 20:03:29 Le-grand-bleu pptp[8103]: anon log[main:pptp.c:267]: The synchronous pptp option is NOT activated Feb 12 20:03:29 Le-grand-bleu pppd[8101]: using channel 3 Feb 12 20:03:29 Le-grand-bleu pppd[8101]: Using interface ppp0 Feb 12 20:03:29 Le-grand-bleu pppd[8101]: Connect: ppp0 <--> /dev/pts/2 Feb 12 20:03:29 Le-grand-bleu pptp[8106]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' Feb 12 20:03:29 Le-grand-bleu pptp[8106]: anon log[ctrlp_disp:pptp_ctrl.c:738]: Received Start Control Connection Reply Feb 12 20:03:29 Le-grand-bleu pptp[8106]: anon log[ctrlp_disp:pptp_ctrl.c:772]: Client connection established. Feb 12 20:03:30 Le-grand-bleu pppd[8101]: nm-pppd-plugin: CHAP check hook. Feb 12 20:03:30 Le-grand-bleu pppd[8101]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x88c9ddf> <pcomp> <accomp>] Feb 12 20:03:30 Le-grand-bleu pptp[8106]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' Feb 12 20:03:30 Le-grand-bleu pptp[8106]: anon log[ctrlp_disp:pptp_ctrl.c:857]: Received Outgoing Call Reply. Feb 12 20:03:30 Le-grand-bleu pptp[8106]: anon log[ctrlp_disp:pptp_ctrl.c:896]: Outgoing call established (call ID 0, peer's call ID 46452). Feb 12 20:03:33 Le-grand-bleu pppd[8101]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x88c9ddf> <pcomp> <accomp>] Feb 12 20:03:39 Le-grand-bleu last message repeated 2 times Feb 12 20:03:40 Le-grand-bleu pppd[8101]: Terminating on signal 15 Feb 12 20:03:40 Le-grand-bleu pppd[8101]: sent [LCP TermReq id=0x2 "User request"] Feb 12 20:03:40 Le-grand-bleu NetworkManager: <WARN> nm_vpn_service_process_signal(): VPN failed for service 'org.freedesktop.NetworkManager.ppp_starter', signal 'ConnectFailed', with message 'VPN Connection failed'. Feb 12 20:03:40 Le-grand-bleu NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.ppp_starter' signaled state change 3 -> 5. Feb 12 20:03:40 Le-grand-bleu NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.ppp_starter' signaled state change 5 -> 6. Feb 12 20:03:40 Le-grand-bleu NetworkManager: <WARN> nm_vpn_service_stop_connection(): (VPN Service org.freedesktop.NetworkManager.ppp_starter): could not stop connection 'UdeM' because service was 6. Feb 12 20:03:40 Le-grand-bleu pptp[8106]: anon log[callmgr_main:pptp_callmgr.c:255]: Closing connection (shutdown) Feb 12 20:03:40 Le-grand-bleu pptp[8106]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request' Feb 12 20:03:40 Le-grand-bleu pptp[8106]: anon log[call_callback:pptp_callmgr.c:78]: Closing connection (call state) Feb 12 20:03:40 Le-grand-bleu pppd[8101]: Modem hangup Feb 12 20:03:40 Le-grand-bleu pppd[8101]: Connection terminated. Feb 12 20:03:40 Le-grand-bleu pppd[8101]: Child process /usr/sbin/pptp 132.204.2.20 --nolaunchpppd (pid 8102) terminated with signal 15 Feb 12 20:03:40 Le-grand-bleu pppd[8101]: Exit.
Précisons que le signal 15 sort d'habitude quand le routeur ne laisse pas passer le PPTP. Ici, les deux routeurs sont configurés pour laisser passer.
En remettant le MTU à 1000 comme montrait JF, ça donne ça:
Feb 12 20:07:17 Le-grand-bleu NetworkManager: <debug> [1202864837.961055] nm_dbus_signal_filter(): NetworkManagerInfo triggered update of VPN connection 'UdeM' Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> Will activate VPN connection 'UdeM', service 'org.freedesktop.NetworkManager.ppp_starter', user_name 'cubytus', vpn_data 'ppp-connection-type / pptp / pptp-remote / vpn.cc.umontreal.ca / usepeerdns / yes / encrypt-mppe / no / encrypt-mppe-128 / yes / encrypt-mppe-stateful / yes / compress-mppc / no / compress-deflate / no / compress-bsd / no / ppp-lock / yes / ppp-auth-peer / no / ppp-refuse-eap / yes / ppp-refuse-chap / no / ppp-refuse-mschap / no / mtu / 1000 / mru / 1500 / lcp-echo-failure / 10 / lcp-echo-interval / 10 / ppp-extra / / ppp-debug / yes / usepeerdns-overtunnel / yes / routes / / use-routes / no', route ''. Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 1 of 4 (Connection Prepare) scheduled... Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 1 of 4 (Connection Prepare) ran VPN service daemon org.freedesktop.NetworkManager.ppp_starter (PID 8127) Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 1 of 4 (Connection Prepare) complete. Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 2 of 4 (Connection Prepare Wait) scheduled... Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.ppp_starter' signaled state change 1 -> 6. Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 2 of 4 (Connection Prepare Wait) waiting... Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 2 of 4 (Connection Prepare Wait) complete. Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 3 of 4 (Connect) scheduled... Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 3 of 4 (Connect) sending connect request. Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 3 of 4 (Connect) request sent, waiting for reply... Feb 12 20:07:36 Le-grand-bleu NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.ppp_starter' signaled state change 6 -> 3. Feb 12 20:07:38 Le-grand-bleu pppd[8128]: Plugin nm-pppd-plugin.so loaded. Feb 12 20:07:38 Le-grand-bleu pppd[8128]: nm-pppd-plugin: plugin initialized. Feb 12 20:07:38 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 3 of 4 (Connect) reply received. Feb 12 20:07:38 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 4 of 4 (IP Config Get) timeout scheduled... Feb 12 20:07:38 Le-grand-bleu NetworkManager: <info> VPN Activation (UdeM) Stage 3 of 4 (Connect) complete, waiting for IP configuration... Feb 12 20:07:38 Le-grand-bleu modprobe: WARNING: Not loading blacklisted module ipv6 Feb 12 20:07:38 Le-grand-bleu pppd[8132]: pppd 2.4.4 started by root, uid 0 Feb 12 20:07:38 Le-grand-bleu pptp[8134]: anon log[main:pptp.c:267]: The synchronous pptp option is NOT activated Feb 12 20:07:38 Le-grand-bleu pppd[8132]: using channel 4 Feb 12 20:07:38 Le-grand-bleu pppd[8132]: Using interface ppp0 Feb 12 20:07:38 Le-grand-bleu pppd[8132]: Connect: ppp0 <--> /dev/pts/2 Feb 12 20:07:38 Le-grand-bleu pptp[8137]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' Feb 12 20:07:38 Le-grand-bleu pptp[8137]: anon log[ctrlp_disp:pptp_ctrl.c:738]: Received Start Control Connection Reply Feb 12 20:07:38 Le-grand-bleu pptp[8137]: anon log[ctrlp_disp:pptp_ctrl.c:772]: Client connection established. Feb 12 20:07:39 Le-grand-bleu pppd[8132]: nm-pppd-plugin: CHAP check hook. Feb 12 20:07:39 Le-grand-bleu pppd[8132]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa0945c2c> <pcomp> <accomp>] Feb 12 20:07:39 Le-grand-bleu pptp[8137]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' Feb 12 20:07:39 Le-grand-bleu pptp[8137]: anon log[ctrlp_disp:pptp_ctrl.c:857]: Received Outgoing Call Reply. Feb 12 20:07:39 Le-grand-bleu pptp[8137]: anon log[ctrlp_disp:pptp_ctrl.c:896]: Outgoing call established (call ID 0, peer's call ID 54958). Feb 12 20:07:42 Le-grand-bleu pppd[8132]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xa0945c2c> <pcomp> <accomp>] Feb 12 20:07:48 Le-grand-bleu last message repeated 2 times Feb 12 20:07:49 Le-grand-bleu pppd[8132]: Terminating on signal 15 Feb 12 20:07:49 Le-grand-bleu pppd[8132]: sent [LCP TermReq id=0x2 "User request"] Feb 12 20:07:49 Le-grand-bleu NetworkManager: <WARN> nm_vpn_service_process_signal(): VPN failed for service 'org.freedesktop.NetworkManager.ppp_starter', signal 'ConnectFailed', with message 'VPN Connection failed'. Feb 12 20:07:49 Le-grand-bleu NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.ppp_starter' signaled state change 3 -> 5. Feb 12 20:07:49 Le-grand-bleu NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.ppp_starter' signaled state change 5 -> 6. Feb 12 20:07:49 Le-grand-bleu NetworkManager: <WARN> nm_vpn_service_stop_connection(): (VPN Service org.freedesktop.NetworkManager.ppp_starter): could not stop connection 'UdeM' because service was 6. Feb 12 20:07:49 Le-grand-bleu pptp[8137]: anon log[callmgr_main:pptp_callmgr.c:255]: Closing connection (shutdown) Feb 12 20:07:49 Le-grand-bleu pptp[8137]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request' Feb 12 20:07:49 Le-grand-bleu pptp[8137]: anon log[call_callback:pptp_callmgr.c:78]: Closing connection (call state) Feb 12 20:07:49 Le-grand-bleu pppd[8132]: Modem hangup Feb 12 20:07:49 Le-grand-bleu pppd[8132]: Connection terminated. Feb 12 20:07:49 Le-grand-bleu pppd[8132]: Child process /usr/sbin/pptp 132.204.2.20 --nolaunchpppd (pid 8133) terminated with signal 15 Feb 12 20:07:49 Le-grand-bleu pppd[8132]: Exit.
pas plus de succès.
*/Eric Buist buisteri@iro.umontreal.ca/* a écrit :
Bonjour, Dans les paramètres de la connexion, active l'option debug. Le syslog devrait alors contenir plus d'informations sur ce qui se passe avec le PPTP. Pour ma part, la connexion fonctionne. J'ai configuré MTU et MRU à 1500. Eric Tobby Cleps a écrit :
Alors j'ai testé sur la machine de mon père, un Ubuntu 7.10 aussi. Les mêmes symptômes que moi au début, il m'a fallu redémarrer 2 fois avant que ça n'apparaisse dans la liste. Par contre, ça ne se connecte toujours pas. On a remplacé un problème par un autre. */Eric Buist <buisteri@iro.umontreal.ca>/* a écrit : Bon, alors vérifions une hypothèse bien simpliste mais qui est possible tout de même. Au lieu d'appeler ta connexion Université de Montréal, appelle-la UdeM. Qui sait si les accents et les espaces ne gênent pas NM... Eric Tobby Cleps a écrit :
Mes réponses à tous... */Jean-François Fortin Tam <jf.fortin.tam@umontreal.ca>/* a écrit :
> puis...rien du tout! En cliquant sur l'icône de nm-applet je vois bien > "connexions VPN" sur lequel je passe la souris, le petit sous-menu > s'affiche, et...la connexion tout juste configurée n'est pas là !
C'est peut-être une question bête mais... t'as pris le temps de faire un logout-login? Parce que à mon souvenir certains trucs ne s'appliquaient pas toujours instantanément dans ubuntu 7.04, mais il me semblait pourtant que dans 7.10 ça marchait mieux. Hm. Enfin c'est p'tet pas ça. Sinon, tente la suggestion de Mathieu de resetter les configs. Si ça marche, j'aimerais que tu me le dises pour que je rajoute ça à l'article. Logout login n'a rien changé. J'ai ajouté la même configuration pour le VPN à la main, comme montré sur les captures d'écran du tutoriel (qui sont faites avec une ancienne version de nm-applet!) Le mardi 12 février 2008 à 09:28 -0500, Eric Buist a écrit :
Peut-être le format du fichier de paramètres à importer a changé entre Feisty et Gutsy.
Ça c'est peut-être possible. J'y avais pas pensé. Faudrait que je versionne mes fichiers, mais pourtant à voir la date du fichier pcf, j'avais dû le créer pour goatsy:
2007-09-10 10:41 VPN umontreal.pcf 2007-02-11 16:30 VPN umontreal.pcf.old
Juste avant d'établir la connexion VPN, ouvre une console. Ensuite, connecte-toi puis tape ifconfig sur la console, le plus rapidement possible. Tape-le plusieurs fois et vérifie qu'un moment donné, ppp0 apparaît. Si ppp0 est apparue, la connexion est établie. Quelques secondes après, réessaie ifconfig et assure-toi que ppp0 reste là. S'il a disparu, c'est que la connexion s'est coupée. Si la connexion VPN semble s'établir puis se couper quelques secondes après, il y a peut-être un problème au niveau de l'authentification. Dans les propriétés de la connexion, active le débogage et regarde les fichiers log dans /var/log.
Wow, ça c'est hardcore, moi j'utilisais simplement le visionneur de journaux pour observer en temps réel /var/log/syslog (parce que, va savoir pourquoi, network-manager crache ses infos dedans). De toute manière ppp0 n'apparaît pas. En regardant le contenu de syslog, j'ai ajouté la connexion, et ça est apparu dans syslog: Feb 12 13:20:44 Le-grand-bleu NetworkManager: <debug> [1202840444.352124] nm_dbus_signal_filter(): NetworkManagerInfo triggered update of VPN connection 'Université de Montréal' Ce n'est pas très parlant.
Décidément, VPN sous Linux, ce n'est vraiment mais vraiment pas stable. Ça fonctionne sur certaines machines, sur certains réseaux tandis que sur d'autres, rien à faire.
Je me souviens de quelqu'un qui avait été bloqué par une config de son routeur qui bloquait les pptp passthrough. Personnellement, moi ça marche sur mon laptop autant chez moi qu'à l'université (mais bon ça fait un bon bout de temps que je l'ai utilisé). Là je viens d'essayer à l'instant et ça ne marche plus en sans-fil, seulement si je suis connecté en filaire. What the heck.
J'ai même lu sur un forum qu'une personne arrivait à se connecter par VPN de chez elle tandis que depuis l'université, ça ne fonctionnait pas. Probablement que certains détails du protocole PPTP qui sert au VPN de Microsoft ne sont pas bien implantés dans le noyau. Je ne suis donc pas certain que même après l'établissement de la connexion, l'accès fonctionnera.
J'y pense, étant pro-libre, ne devrait-on pas embêter la dgtic pour du OpenVPN? ;) Une bien bonne idée, mais ils ont la tête dure...Déjà qu'ils aient les spécificatiosn exactes de leurs propres protocoles serait un énorme progrès; y'en a trop à la DGTIC qui ne savent que cliquer sans comprendre.
JF, il faudrait penser à ajouter ces spécifités dans tes instructions sur ta page Web.
Y'a tellement de spécificités réparties dans plusieurs mails que je sais pas trop quoi mettre et comment le rendre compréhensible. Si t'as des suggestions des points spécifiques que je devrais ajouter... ou alors il va y avoir 15 annexes en bas de page que je serais pas mal tenté de copier coller. Faudrait même que je rajoute une petite mention firestarter avec network manag--ah non, rien à voir avec vpn j'suppose. Le courriel précédent de la liste demandait de vérifier en fonction de ma connexion internet...je n'ai pas la malchance d'avoir l'ADSL dont pas de ppp de déjà présent; de toute manière, ma machine est derrière deux routeurs, qui tous deux laissent passer le PPTP, mais je n'en suis même pas encore là! La connexion s'affiche dans la boîte de dialogue "Connexions VPN" qui apparaît en cliquant sur "configurer le réseau VPN", mais pas au-dessus de "configurer le réseau vpn" Pat ------------------------------------------------------------------------ Découvrez les styles qui font sensation sur * Yahoo! Québec Avatars* <http://cf.avatars.yahoo.com/> ------------------------------------------------------------------------ _______________________________________________ Gulum-team mailing list Gulum-team@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gulum-team
------------------------------------------------------------------------ Découvrez les styles qui font sensation sur * Yahoo! Québec Avatars* <http://cf.avatars.yahoo.com/>
Devenez un meilleur amigo grâce à *Yahoo! Courriel* http://cf.promos.yahoo.com/courriel/visiteguidee2/