pptpd vpn verbindung von ubuntu aus herstellen

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
moodsx
Beiträge: 188
Registriert: 15.03.2007 09:17:25

pptpd vpn verbindung von ubuntu aus herstellen

Beitrag von moodsx » 01.08.2009 11:57:40

Hallo Community,

ich betreibe auf meinem Router (Debian lenny) einen pptpd Server. Die Einwahl von Windows XP aus funktioniert auf Anhieb. Leider bekomme ich es nicht hin das ich mich per Ubuntu 9.04 einklinken kann.

Meine Configs:

Server /etc/ppp/pptp-options:

Code: Alles auswählen

name pptp
require-pap
require-chap
require-mschap
require-mschap-v2
require-mppe-128
ms-dns 192.168.0.17
proxyarp
nodefaultroute
lock
Server /etc/ppp/chap-secrets:

Code: Alles auswählen

"username" pptp "password" *
client /etc/ppp/chap-secrets:

Code: Alles auswählen

username * "password" "IP-Adress des pptpd-Servers"
client /etc/ppp/options.pptp:

Code: Alles auswählen

# Lock the port
lock

# Authentication
# We don't need the tunnel server to authenticate itself
noauth

# We won't do PAP, EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
# (you may need to remove these refusals if the server is not using MPPE)
refuse-pap
refuse-eap
refuse-chap
require-mschap
require-mschap-v2
# Compression
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate

# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose with of the following sections you will use.  Note that MPPE
# requires the use of MSCHAP-V2 during authentication)

# http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
# {{{
# Require MPPE 128-bit encryption
require-mppe-128
# }}}

# http://polbox.com/h/hs001/ fork from PPP project by Jan Dubiec
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
# {{{
# Require MPPE 128-bit encryption
mppe required,stateless
# }}}
Die Ausgabe dazu im Syslog:

Aug 1 11:48:01 router pptpd[23871]: MGR: Launching /usr/sbin/pptpctrl to handle client
Aug 1 11:48:01 router pptpd[23871]: CTRL: local address = 192.168.0.30
Aug 1 11:48:01 router pptpd[23871]: CTRL: remote address = 192.168.0.31
Aug 1 11:48:01 router pptpd[23871]: CTRL: pppd options file = /etc/ppp/pptpd-options
Aug 1 11:48:01 router pptpd[23871]: CTRL: Client 192.168.0.6 control connection started
Aug 1 11:48:01 router pptpd[23871]: CTRL: Received PPTP Control Message (type: 1)
Aug 1 11:48:01 router pptpd[23871]: CTRL: Made a START CTRL CONN RPLY packet
Aug 1 11:48:01 router pptpd[23871]: CTRL: I wrote 156 bytes to the client.
Aug 1 11:48:01 router pptpd[23871]: CTRL: Sent packet to client
Aug 1 11:48:02 router pptpd[23871]: CTRL: Received PPTP Control Message (type: 7)
Aug 1 11:48:02 router pptpd[23871]: CTRL: Set parameters to 10000000 maxbps, 3 window size
Aug 1 11:48:02 router pptpd[23871]: CTRL: Made a OUT CALL RPLY packet
Aug 1 11:48:02 router pptpd[23871]: CTRL: Starting call (launching pppd, opening GRE)
Aug 1 11:48:02 router pptpd[23871]: CTRL: pty_fd = 6
Aug 1 11:48:02 router pptpd[23871]: CTRL: tty_fd = 7
Aug 1 11:48:02 router pptpd[23871]: CTRL: I wrote 32 bytes to the client.
Aug 1 11:48:02 router pptpd[23872]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Aug 1 11:48:02 router pptpd[23872]: CTRL (PPPD Launcher): local address = 192.168.0.30
Aug 1 11:48:02 router pptpd[23872]: CTRL (PPPD Launcher): remote address = 192.168.0.31
Aug 1 11:48:02 router pptpd[23871]: CTRL: Sent packet to client
Aug 1 11:48:02 router pppd[23872]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Aug 1 11:48:02 router pppd[23872]: pppd 2.4.4 started by root, uid 0
Aug 1 11:48:02 router pppd[23872]: Using interface ppp0
Aug 1 11:48:02 router pppd[23872]: Connect: ppp0 <--> /dev/pts/1
Aug 1 11:48:02 router pptpd[23871]: GRE: Bad checksum from pppd.
Aug 1 11:48:04 router pptpd[23871]: GRE: accepting packet #1
Aug 1 11:48:04 router pptpd[23871]: GRE: accepting packet #2
Aug 1 11:48:04 router pptpd[23871]: GRE: accepting packet #3
Aug 1 11:48:04 router pptpd[23871]: GRE: accepting packet #4
Aug 1 11:48:04 router pptpd[23871]: GRE: accepting packet #5
Aug 1 11:48:04 router pppd[23872]: peer refused to authenticate: terminating link
Aug 1 11:48:04 router pptpd[23871]: GRE: accepting packet #6
Aug 1 11:48:04 router pptpd[23871]: GRE: accepting packet #7
Aug 1 11:48:04 router pptpd[23871]: GRE: accepting packet #8
Aug 1 11:48:04 router pppd[23872]: Connection terminated.
Aug 1 11:48:04 router pppd[23872]: Exit.
Aug 1 11:48:04 router pptpd[23871]: GRE: read(fd=6,buffer=8058640,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 1 11:48:04 router pptpd[23871]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Aug 1 11:48:04 router pptpd[23871]: CTRL: Reaping child PPP[23872]
Aug 1 11:48:04 router pptpd[23871]: CTRL: Client 192.168.0.6 control connection finished
Aug 1 11:48:04 router pptpd[23871]: CTRL: Exiting now
Aug 1 11:48:04 router pptpd[23329]: MGR: Reaped child 23871

Ich hoffe mir kann dazu jemand einen Tipp geben. Danke

Antworten