pptp problem

am285

Discouraged One
ich schlage mich nun seit 4 tagen mit dem problem rum, mich unter openbsd-3.5 via pptp zu meinem isp zu connecten (inode xdsl - ein österreichischer provider).

ich bin nach allen anleitungen vorgegangen, die ich im www gefunden habe, und bin aber bis jetzt auf keinen grünen zweig gekommen.

in der faq auf openbsd.org schlägt man vor pptp mit pppd in verbindung zu verwenden. das soll anscheinend ganz gut funktionieren, bei mir hauts nicht hin ;)

pppd spuckt beim starten (oder beim von pptp geforked werden) folgenden error aus:

Code:
pppd: This system lacks kernel support for PPP.  To include PPP support
in the kernel, please add a line
        pseudo-device ppp 1
to your kernel config file and build a new kernel.

ich hab den kernel mittlerweile über 10 mal neu kompiliert, an allen in frage kommenden optionen rumgepfuscht, aber es funktioniert einfach nicht. bei jeder konfiguration quittiert pppd den dienst mit obiger fehlermeldung.

dann bin ich auf ppp gestoßen. das startet ganz normal mit folgender konfiguration:

/etc/ppp/ppp.conf
Code:
default:
 set log Phase Chat LCP IPCP CCP tun command

pptp:
 set device "!/usr/local/sbin/pptp 10.0.0.138 --nolaunchpppd"
 set authname userxxx
 set authkey passxxx
 set mtu max 1490
 set mru max 1490
 set mppe 40 stateless
 set mppe 128 stateless
 disable pap
 disable chap
 accept chap81
 disable ipv6cp
 disable deflate pred1
 deny deflate pred1
 set login

/etc/ppp/ppp.secret:
Code:
userxxx      passxxx

ausgeführt wird es mit ppp -ddial pptp. es startet also und ein paar minuten lang passiert gar nichts. dann kommt ne meldung, dass tun0 up ist und ich bin wieder am CLI.

hier mal ein auszug aus dem log:

Code:
Oct  1 19:49:41 centipede ppp[27323]: Phase: Using interface: tun0 
Oct  1 19:49:41 centipede ppp[27323]: Phase: deflink: Created in closed state 
Using interface: tun0
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: set device !/usr/local/sbin/pptp 10.0.0.138 --nolaunchpppd 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: set authname **** ZENSIERT ****
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: set authkey ******** 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: set mtu max 1490 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: set mru max 1490 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: set mppe 40 stateless 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: set mppe 128 stateless 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: disable pap 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: disable chap 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: accept chap81 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: disable ipv6cp 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: disable deflate pred1 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: deny deflate pred1 
Oct  1 19:52:21 centipede ppp[27323]: tun0: Command: pptp: set login 
[1]  + 27323 done       ppp -ddial pptp
Oct  1 19:52:21 centipede ppp[17058]: tun0: Phase: PPP Started (ddial mode). 
Oct  1 19:52:21 centipede ppp[17058]: tun0: Phase: bundle: Establish 
Oct  1 19:52:21 centipede ppp[17058]: tun0: Phase: deflink: closed -> opening 
Oct  1 19:52:21 centipede ppp[17058]: tun0: Phase: deflink: Connected! 
Oct  1 19:52:21 centipede ppp[17058]: tun0: Phase: deflink: opening -> dial 
Oct  1 19:52:21 centipede ppp[17058]: tun0: Phase: deflink: dial -> carrier 
Oct  1 19:52:21 centipede ppp[17058]: tun0: Phase: deflink: carrier -> login 
Oct  1 19:52:21 centipede ppp[17058]: tun0: Phase: deflink: login -> lcp 
Oct  1 19:52:21 centipede ppp[17058]: tun0: LCP: FSM: Using "deflink" as a transport 
Oct  1 19:52:21 centipede ppp[17058]: tun0: LCP: deflink: State change Initial --> Closed 
Oct  1 19:52:21 centipede ppp[17058]: tun0: LCP: deflink: State change Closed --> Stopped 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: LayerStart 
Oct  1 19:52:22 centipede ppp[17058]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1490 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  ACFCOMP[2] 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  PROTOCOMP[2] 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  ACCMAP[6] 0x00000000 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  MRU[4] 1490 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  MAGICNUM[6] 0x0b97fc7a 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: State change Stopped --> Req-Sent 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: RecvConfigRej(1) state = Req-Sent 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  ACFCOMP[2] 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  PROTOCOMP[2] 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  ACCMAP[6] 0x00000000 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: SendConfigReq(2) state = Req-Sent 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  MRU[4] 1490 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  MAGICNUM[6] 0x0b97fc7a 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: RecvConfigAck(2) state = Req-Sent 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  MRU[4] 1490 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  MAGICNUM[6] 0x0b97fc7a 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: State change Req-Sent --> Ack-Rcvd 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: RecvConfigReq(0) state = Ack-Rcvd 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP) 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  MAGICNUM[6] 0x69fa9494 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: SendConfigAck(0) state = Ack-Rcvd 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP) 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP:  MAGICNUM[6] 0x69fa9494 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: State change Ack-Rcvd --> Opened 
Oct  1 19:52:22 centipede ppp[17058]: tun0: LCP: deflink: LayerUp 
Oct  1 19:52:22 centipede ppp[17058]: tun0: Phase: bundle: Authenticate 
Oct  1 19:52:22 centipede ppp[17058]: tun0: Phase: deflink: his = PAP, mine = none 
Oct  1 19:52:22 centipede ppp[17058]: tun0: Phase: Pap Output: ***** ZENSIERT ***** ******** 
Oct  1 19:52:24 centipede ppp[17058]: tun0: Phase: Pap Input: SUCCESS () 
Oct  1 19:52:24 centipede ppp[17058]: tun0: CCP: FSM: Using "deflink" as a transport 
Oct  1 19:52:24 centipede ppp[17058]: tun0: CCP: deflink: State change Initial --> Closed 
Oct  1 19:52:24 centipede ppp[17058]: tun0: CCP: deflink: LayerStart. 
Oct  1 19:52:24 centipede ppp[17058]: tun0: CCP: MPPE: Not usable without CHAP81 
Oct  1 19:52:24 centipede ppp[17058]: tun0: CCP: deflink: SendConfigReq(1) state = Closed 
Oct  1 19:52:24 centipede ppp[17058]: tun0: CCP:   [EMPTY] 
Oct  1 19:52:24 centipede ppp[17058]: tun0: CCP: deflink: State change Closed --> Req-Sent 
Oct  1 19:52:24 centipede ppp[17058]: tun0: Phase: deflink: lcp -> open 
Oct  1 19:52:24 centipede ppp[17058]: tun0: Phase: bundle: Network 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: FSM: Using "deflink" as a transport 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: State change Initial --> Closed 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: LayerStart. 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP:  IPADDR[6] 192.168.0.6 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with slot compression 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: State change Closed --> Req-Sent 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: RecvConfigReq(52) state = Req-Sent 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP:  IPADDR[6] 62.99.171.97 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: SendConfigAck(52) state = Req-Sent 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP:  IPADDR[6] 62.99.171.97 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent 
Oct  1 19:52:24 centipede ppp[17058]: tun0: LCP: deflink: RecvProtocolRej(16) state = Opened 
Oct  1 19:52:24 centipede ppp[17058]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected! 
Oct  1 19:52:24 centipede ppp[17058]: tun0: CCP: deflink: State change Req-Sent --> Stopped 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: RecvConfigRej(1) state = Ack-Sent 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with slot compression 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: SendConfigReq(2) state = Ack-Sent 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP:  IPADDR[6] 192.168.0.6 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: RecvConfigNak(2) state = Ack-Sent 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP:  IPADDR[6] 62.99.167.68 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP:  IPADDR[6] changing address: 192.168.0.6  --> 62.99.167.68 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: SendConfigReq(3) state = Ack-Sent 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP:  IPADDR[6] 62.99.167.68 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: RecvConfigAck(3) state = Ack-Sent 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP:  IPADDR[6] 62.99.167.68 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: State change Ack-Sent --> Opened 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: deflink: LayerUp. 
Oct  1 19:52:24 centipede ppp[17058]: tun0: IPCP: myaddr 62.99.167.68 hisaddr = 62.99.171.97 
Oct  1 19:52:24 centipede ppp[17058]: tun0: Command: pptp: ! sh -c /sbin/route delete default 
Oct  1 19:52:24 centipede ppp[17058]: tun0: Command: pptp: ! sh -c /sbin/route add default 10.0.0.138 -gateway 172.17.153.1 
Oct  1 19:52:24 centipede ppp[17058]: tun0: Warning: ff02::%tun0/32: Change route failed: errno: Undefined error: 0 
Oct  1 19:52:24 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:52:27 centipede last message repeated 6 times
Oct  1 19:52:27 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(1) state = Opened 
Oct  1 19:52:27 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(1) state = Opened 
Oct  1 19:52:27 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:52:47 centipede last message repeated 40 times
Oct  1 19:52:47 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(2) state = Opened 
Oct  1 19:52:47 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(2) state = Opened 
Oct  1 19:52:47 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:52:57 centipede last message repeated 20 times
Oct  1 19:52:57 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(3) state = Opened 
Oct  1 19:52:57 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(3) state = Opened 
Oct  1 19:52:57 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:53:17 centipede last message repeated 43 times
Oct  1 19:53:17 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(4) state = Opened 
Oct  1 19:53:17 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(4) state = Opened 
Oct  1 19:53:17 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
^[[BOct  1 19:53:37 centipede last message repeated 41 times
Oct  1 19:53:37 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(5) state = Opened 
Oct  1 19:53:37 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(5) state = Opened 
Oct  1 19:53:37 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:53:47 centipede last message repeated 20 times
Oct  1 19:53:47 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(6) state = Opened 
Oct  1 19:53:47 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(6) state = Opened 
Oct  1 19:53:47 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:54:07 centipede last message repeated 44 times
Oct  1 19:54:07 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(7) state = Opened 
Oct  1 19:54:07 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(7) state = Opened 
Oct  1 19:54:07 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:54:27 centipede last message repeated 42 times
Oct  1 19:54:27 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(8) state = Opened 
Oct  1 19:54:27 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(8) state = Opened 
Oct  1 19:54:27 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:54:37 centipede last message repeated 20 times
Oct  1 19:54:37 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(9) state = Opened 
Oct  1 19:54:37 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(9) state = Opened 
Oct  1 19:54:37 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:54:47 centipede last message repeated 20 times
Oct  1 19:54:47 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(10) state = Opened 
Oct  1 19:54:47 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(10) state = Opened 
Oct  1 19:54:47 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:55:07 centipede last message repeated 41 times
Oct  1 19:55:07 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(11) state = Opened 
Oct  1 19:55:07 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(11) state = Opened 
Oct  1 19:55:07 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP 
Oct  1 19:55:17 centipede last message repeated 19 times
Oct  1 19:55:17 centipede ppp[17058]: tun0: LCP: deflink: RecvEchoRequest(12) state = Opened 
Oct  1 19:55:17 centipede ppp[17058]: tun0: LCP: deflink: SendEchoReply(12) state = Opened 
Oct  1 19:55:17 centipede ppp[17058]: tun0: Phase: deflink: Not transmitting... waiting for CCP

die letzten log-msgs wiederholen sich dann, bis ich ppp kille.

ich hoffe, dass mir da jemand weiterhelfen kann...

gruß,
am285
 
I.MC schrieb:
Kennst du mpd? Das habe ich jahrelang fuer pptp dsl einwahl genutzt.

Gruss, I.MC

afaik läuft das aber unter openbsd nicht (ich hab's jetzt zumindest nicht zum laufen bekommen).
mir wäre ja schon geholfen, wenn pppd entlich laufen würde. :(

gruß,
am285
 
napolion schrieb:
Hallo,
hast du dir dieses How-to
mal angesehen.
Vielleicht ist da was dabei was dir weiterhilft.

MfG nap

ja, ich habe unter anderem auch dieses howto ausprobiert... es scheitert jedoch bereits daran pppd zu starten (bzw. durch pptp geforked zu werden).

guß,
am285
 
hi

ich kämpfe auch gerade mit pptp und ich habs geschafft - ich nehme an du hast auch ein alcatel 510 modem? wenn du willst könnte ich dir einen Generic Kernel schicken der pptp unterstützt, weiss nicht ob dir das helfen könnte da ich leider noch kein experte in OpenBSD in :(
 
@mr.bbq bitte teile dein wissen mit _allen_ usern im forum. poste bitte deine configdatei, damit andere nachlesen koennen warum dein kernel funktioniert.
 
Oh selbstverständlich, tut mir leid. ich muss aber noch dazu sagen, dass ich eine statische IP habe.

pptp habe ich über die ports installiert.

den kernel hab ich ohne GRE kompiliert, d.h. du suchst im GENERIC-Kernel unter /usr/src/sys/conf/GENERIC den pseudo-device GRE und kommentierst ihn aus (nicht in /usr/src/sys/arch/$ARCH/conf/GENERIC - dort ist er nicht drin). danach baust du dir deinen Kernel für dein system (anleitung hier)

die options datei im ordner /etc/ppp sieht bei mir so aus:

Code:
name "[I]username[/I]"
noauth
noipdefault
defaultroute
debug

die pap-secrets in /etc/ppp etwa so:

Code:
#       $OpenBSD: pap-secrets,v 1.3 2002/06/09 06:15:15 todd Exp $

# Secrets for authentication using PAP
# client        server  secret                  IP addresses
[I]username[/I] 10.0.0.138 [I]password[/I]

eine ppp.conf verwende ich, soweit ich weiss nicht.

die pf.conf schaut momentan bei mir so aus. leider sind noch keine anderen pf regeln dabei weil ich mir das noch genauer anschauen muss.

Code:
# our defines
ext_if="ppp0"
int_if="rl1"
unroutable="{ 127.0.0.1/8, 10.0.0.0/8, 172.16.0.0/12, \
              192.168.0.0/16, 255.255.255.255/32 }"

internal_net="192.168.1.0/24"

# force packets to conform to specifications.  You can miss off the
# no-df if you don't intend to use IPSec.
scrub in  all no-df
scrub out all no-df

nat on $ext_if from $internal_net to any -> $ext_if

damit das ganze am systemstart startet hier noch ein teil meiner rc.local

Code:
# start ADSL connection
if [ -x /usr/local/sbin/pptp ]; then
echo "starting ADSL connection"
/usr/local/sbin/pptp 10.0.0.138 &
fi

sleep 10

# start pf
if [ -e /etc/pf.conf ]; then
if [ -x /sbin/pfctl ]; then
echo "loading pf rules and starting pf-daemon"
/sbin/pfctl -e -Fall -f /etc/pf.conf
fi
fi

warum ich die pf erst in rc.local starte? Pf startet sonst früher als pptp und pf wird nicht gestartet weil ja ppp0 noch keine IP zugewiesen bekommen hat.
 
Zuletzt bearbeitet:
so... ich hab's jetzt geschafft:

ein "ifconfig ppp0 create" hat ausgereicht um pppd zufriedenzustellen. alles läuft bestens.
danke für die tipps

gruß,
am285
 
Zurück
Oben