Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: [opgelost] VPN verbinding wordt onmiddelijk verbroken  (gelezen 1290 keer)

gerwinM

  • Gast
[opgelost] VPN verbinding wordt onmiddelijk verbroken
« Gepost op: 2011/08/16, 23:31:00 »
Ik heb een vpn server (pptpd) opgezet onder Ubuntu 11.04 (gnome). Alles lijkt goed te werken, maar als ik (lokaal) een verbinding probeer te leggen via mijn macbook of mijn ipod touch wordt de verbinding onmiddelijk verbroken. In syslog krijg ik de volgende melding:

 Aug 16 19:46:17 ubuntu pptpd[2752]: MGR: Launching /usr/sbin/pptpctrl to handle client
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: local address = 10.0.1.7
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: remote address = 10.0.1.30
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: pppd options file = /etc/ppp/pptpd-options
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Client 10.0.1.3 control connection started
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Received PPTP Control Message (type: 1)
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Made a START CTRL CONN RPLY packet
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: I wrote 156 bytes to the client.
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Sent packet to client
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Received PPTP Control Message (type: 7)
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Set parameters to 100000000 maxbps, 64 window size
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Made a OUT CALL RPLY packet
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Starting call (launching pppd, opening GRE)
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: pty_fd = 6
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: tty_fd = 7
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: I wrote 32 bytes to the client.
Aug 16 19:46:17 ubuntu pptpd[2753]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Aug 16 19:46:17 ubuntu pptpd[2753]: CTRL (PPPD Launcher): local address = 10.0.1.7
Aug 16 19:46:17 ubuntu pptpd[2753]: CTRL (PPPD Launcher): remote address = 10.0.1.30
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Sent packet to client
Aug 16 19:46:17 ubuntu pppd[2753]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Aug 16 19:46:17 ubuntu pppd[2753]: pptpd-logwtmp: $Version$
Aug 16 19:46:17 ubuntu pppd[2753]: The remote system is required to authenticate itself
Aug 16 19:46:17 ubuntu pppd[2753]: but I couldn't find any suitable secret (password) for it to use to do so.
Aug 16 19:46:17 ubuntu pppd[2753]: (None of the available passwords would let it use an IP address.)
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Received PPTP Control Message (type: 15)
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Got a SET LINK INFO packet with standard ACCMs
Aug 16 19:46:17 ubuntu pptpd[2752]: GRE: read(fd=6,buffer=611660,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Reaping child PPP[2753]
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Client 10.0.1.3 control connection finished
Aug 16 19:46:17 ubuntu pptpd[2752]: CTRL: Exiting now
Aug 16 19:46:17 ubuntu pptpd[2746]: MGR: Reaped child 2752
Aug 16 19:46:17 ubuntu kernel: [19940.286003] [UFW BLOCK] IN=eth0 OUT= MAC=bc:ae:c5:02:33:17:00:23:12:04:ab:81:08:00 SRC=10.0.1.3 DST=10.0.1.7 LEN=60 TOS=0x00 PREC=0x00 TTL=255 ID=43030 PROTO=47

Ik ben nu een aantal dagen bezig, van alles geprobeerd, firewall aan/uit, passwords opnieuw ingeven, ed. Ik kom er niet uit wat hier mis is. Ik heb mijn vraag ook op het apple.community forum gezet, omdat het mogelijk om een probleem bij de client gaat, echter omdat de mac en ipod zelfde fout geven lijkt het me toch waarschijnlijker dat ik ergens in de opzet van de server verkeerd zit.

Aanvullend: Mijn mac geeft de volgende melding(en) in syslog:

16-08-11 23:52:03   pppd[2958]   pppd 2.4.2 (Apple version 412.5) started by Gerwin, uid 501
16-08-11 23:52:08   pppd[2958]   PPTP connecting to server '10.0.1.7' (10.0.1.7)...
16-08-11 23:52:08   pppd[2958]   PPTP connection established.
16-08-11 23:52:08   pppd[2958]   Connect: ppp0 <--> socket[34:17]
16-08-11 23:52:08   pppd[2958]   PPTP error when reading socket : EOF
16-08-11 23:52:08   pppd[2958]   PPTP error when reading header : read -1, expected 12 bytes
16-08-11 23:52:08   pppd[2958]   PPTP hangup
16-08-11 23:52:08   pppd[2958]   Connection terminated.
16-08-11 23:52:08   pppd[2958]   PPTP disconnecting...
16-08-11 23:52:08   pppd[2958]   PPTP disconnected

Suggesties zijn welkom, dank en groet,

Ik heb het problem inmiddels opgelost:
In de chap-secretsfile stonden passwords met ongebruikelijke tekens (# etc). Daardoor werd de chap-secrets file verkeerd gelezen en konden geen ip adressen gevonden worden. Dankzij de beschrijving diagnoses en oplossing voor pptp (http://pptpclient.sourceforge.net/howto-diagnosis.phtml#lcp_timeout). De passwords staan nu tussen 'quotes', en de verbinding is tot stand gebracht ;-)

Gerwin
« Laatst bewerkt op: 2011/08/17, 09:26:54 door gerwinM »