PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Debian Sarge Linux Client soll auf einen D-Link DI-824UVP+ PPTP Server connecten



TeraX
12.09.05, 18:45
Halli Hallo,

nach vielen Howto's lesen und rumprobieren, habe ich leider immer noch keinen Erfolg bei der VPN Einwahl mit einem Linux PC.

Ich besitze den Router D-Link 824UCP+ auf diesem ist ein PPTP Server am laufen. Jeder PC hat einen eigenen Usernamen und die Windows Rechner können einwandfrei sich in das VPN einwählen.

Als Passwortverschlüsselungsmethode ist MSCHAP aktiv.

Daher habe ich auf dem Linux Rechner einen Kernel kompiliert mit MPPE support.


Linux fileserver 2.6.8-mppe #1 Mon Sep 12 15:49:08 CEST 2005 i686 GNU/Linux

Zur ppp configuration bin ich nach folgendem Howto vorgegangen:

http://pptpclient.sourceforge.net/howto-debian.phtml#configure_by_hand

Allerdings klappt die einwahl wenn ich pon fileserver ausführe nicht.

Im folgenden sind die einzelnen config Dateien und darauf die fehlermeldung in der syslog und im debug modus gequotet.

Ich würde mich sehr freuen wenn mir jemand helfen könnte, dieses Problem zu lösen.


/etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
fileserver PPTP mypassword *



/etc/ppp/options.pptp
lock
noauth
nobsdcomp
nodeflate



/etc/ppp/options
name "fileserver"
noauth
noipdefault
defaultroute
mtu 1492
mru 2400



/etc/ppp/peers/fileserver
pty "pptp 10.10.10.1 --nolaunchpppd"
name fileserver
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam fileserver


Fehler in syslog:


Sep 12 18:38:46 localhost pppd[2159]: pppd 2.4.3 started by root, uid 0
Sep 12 18:38:46 localhost pppd[2159]: Using interface ppp0
Sep 12 18:38:46 localhost pppd[2159]: Connect: ppp0 <--> /dev/pts/2
Sep 12 18:38:46 localhost pptp[2160]: anon log[main:pptp.c:243]: The synchronous pptp option is NOT activated
Sep 12 18:38:46 localhost pptp[2169]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 1 'Start-Control-Connection-Request'
Sep 12 18:38:46 localhost pptp[2169]: anon log[ctrlp_disp:pptp_ctrl.c:721]: Received Start Control Connection Reply
Sep 12 18:38:46 localhost pptp[2169]: anon log[ctrlp_disp:pptp_ctrl.c:755]: Client connection established.
Sep 12 18:38:47 localhost pptp[2169]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 7 'Outgoing-Call-Request'
Sep 12 18:38:47 localhost pptp[2169]: anon log[ctrlp_disp:pptp_ctrl.c:841]: Received Outgoing Call Reply.
Sep 12 18:38:47 localhost pptp[2169]: anon log[ctrlp_disp:pptp_ctrl.c:880]: Outgoing call established (call ID 0, peer's call ID 0).
Sep 12 18:39:17 localhost pppd[2159]: LCP: timeout sending Config-Requests
Sep 12 18:39:17 localhost pppd[2159]: Connection terminated.
Sep 12 18:39:17 localhost pppd[2159]: Using interface ppp0
Sep 12 18:39:17 localhost pppd[2159]: Connect: ppp0 <--> /dev/pts/4
Sep 12 18:39:17 localhost pptp[2186]: anon log[main:pptp.c:243]: The synchronous pptp option is NOT activated
Sep 12 18:39:17 localhost pptp[2169]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 7 'Outgoing-Call-Request'
Sep 12 18:39:17 localhost pptp[2169]: anon log[ctrlp_disp:pptp_ctrl.c:841]: Received Outgoing Call Reply.
Sep 12 18:39:17 localhost pptp[2169]: anon log[ctrlp_disp:pptp_ctrl.c:880]: Outgoing call established (call ID 1, peer's call ID 1).
Sep 12 18:39:22 localhost pppd[2159]: tcflush failed: Bad file descriptor
Sep 12 18:39:22 localhost pptp[2169]: anon log[callmgr_main:pptp_callmgr.c:228]: Closing connection
Sep 12 18:39:22 localhost pptp[2169]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 12 'Call-Clear-Request'
Sep 12 18:39:22 localhost pptp[2169]: anon log[callmgr_main:pptp_callmgr.c:228]: Closing connection
Sep 12 18:39:22 localhost pptp[2169]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 12 'Call-Clear-Request'
Sep 12 18:39:22 localhost pptp[2169]: anon log[ctrlp_disp:pptp_ctrl.c:912]: Call disconnect notification received (call id 0)
Sep 12 18:39:22 localhost pptp[2169]: anon log[ctrlp_error:pptp_ctrl.c:195]: Result code is 1 'Lost Carrier'. Error code is 0, Cause code is 0
Sep 12 18:39:22 localhost pptp[2169]: anon log[call_callback:pptp_callmgr.c:77]: Closing connection
Sep 12 18:39:22 localhost pptp[2169]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 12 'Call-Clear-Request'
Sep 12 18:39:22 localhost pptp[2169]: anon log[pptp_conn_close:pptp_ctrl.c:425]: Closing PPTP connection
Sep 12 18:39:22 localhost pptp[2169]: anon log[ctrlp_rep:pptp_ctrl.c:243]: Sent control packet type is 3 'Stop-Control-Connection-Request'
Sep 12 18:39:22 localhost pptp[2169]: anon log[ctrlp_disp:pptp_ctrl.c:912]: Call disconnect notification received (call id 1)
Sep 12 18:39:22 localhost pptp[2169]: anon log[ctrlp_error:pptp_ctrl.c:195]: Result code is 1 'Lost Carrier'. Error code is 0, Cause code is 0
Sep 12 18:39:22 localhost pptp[2169]: anon log[call_callback:pptp_callmgr.c:77]: Closing connection
Sep 12 18:39:22 localhost pppd[2159]: Exit.


Debug Ausführung über:


fileserver:~# pon fileserver debug dump logfd 2 nodetach
pppd options in effect:
debug # (from command line)
nodetach # (from command line)
logfd 2 # (from command line)
dump # (from command line)
noauth # (from /etc/ppp/options.pptp)
name fileserver # (from /etc/ppp/peers/fileserver)
remotename PPTP # (from /etc/ppp/peers/fileserver)
# (from /etc/ppp/options.pptp)
pty pptp 10.10.10.1 --nolaunchpppd # (from /etc/ppp/peers/fileserver)
mru 2400 # (from /etc/ppp/options)
mtu 1492 # (from /etc/ppp/options)
ipparam fileserver # (from /etc/ppp/peers/fileserver)
noipdefault # (from /etc/ppp/options)
defaultroute # (from /etc/ppp/options)
nobsdcomp # (from /etc/ppp/options.pptp)
nodeflate # (from /etc/ppp/options.pptp)
require-mppe-128 # (from /etc/ppp/peers/fileserver)
using channel 12
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
sent [LCP ConfReq id=0x1 <mru 2400> <asyncmap 0x0> <magic 0x8b397aa1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 2400> <asyncmap 0x0> <magic 0x8b397aa1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 2400> <asyncmap 0x0> <magic 0x8b397aa1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 2400> <asyncmap 0x0> <magic 0x8b397aa1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 2400> <asyncmap 0x0> <magic 0x8b397aa1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 2400> <asyncmap 0x0> <magic 0x8b397aa1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 2400> <asyncmap 0x0> <magic 0x8b397aa1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 2400> <asyncmap 0x0> <magic 0x8b397aa1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 2400> <asyncmap 0x0> <magic 0x8b397aa1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 2400> <asyncmap 0x0> <magic 0x8b397aa1> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
using channel 13
Using interface ppp0
Connect: ppp0 <--> /dev/pts/4
Waiting for 2 child processes...
script pptp 10.10.10.1 --nolaunchpppd, pid 2220
script pptp 10.10.10.1 --nolaunchpppd, pid 2203
sending SIGTERM to process 2220
sending SIGTERM to process 2203
tcflush failed: Bad file descriptor



Falls ihr noch Fragen haben solltet dann stellt sie ruhig ich werde sie dann beantworten (andere configs oder ähnliches).

Nebenbei bemerkt, auf dem Server ist kein X installiert, das bedeutet console only (also keine X config tools als tip geben bitte).

Viele Grüße und über zahlreiche Hilfe würd ich mich freuen.

TeraX