Benches macOS

8

L2TP VPN not even accepting connections..…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hey folks,

Here's an issue I've seen A LOT -- probably on half of the Tiger Servers we've set up: PPTP works fine, L2TP doesn't even allow connections to initiate.

It's not a firewall or router issue; I've duplicated it on the local networks, with the server firewall off. The closest I've got to the problem is to determine that server port 1701 (L2TP) is simply not accepting connections; port 1723 (PPTP) has no such issue. See the following Terminal transcript, from a workstation on the LAN, no firewalling enabled:

workstation:~ noam$ telnet 10.0.5.3 1701

Trying 10.0.5.3...

telnet: connect to address 10.0.5.3: Connection refused

telnet: Unable to connect to remote host

workstation:~ noam$ telnet 10.0.5.3 1723

Trying 10.0.5.3...

Connected to medicalserver.medicaloffice.com.

Escape character is '^]'.

We've duplicated this exact situation on networks using all kinds of routers and switches. It doesn't seem specific to any model, and as I've said it only happens on HALF the servers, all using the same configuration methodology.

The vpnd.log is annoyingly empty of clues:

#Start-Date: 2007-12-18 09:58:05 PST

#Fields: date time s-comment

2007-12-18 09:58:05 PST Loading plugin /System/Library/Extensions/L2TP.ppp

2007-12-18 09:58:05 PST Listening for connections...

#Start-Date: 2007-12-18 09:58:05 PST

#Fields: date time s-comment

2007-12-18 09:58:05 PST Loading plugin /System/Library/Extensions/PPTP.ppp

2007-12-18 09:58:05 PST Listening for connections...

I don't know if this same issue occurs on Leopard Server.

Yurk! Any suggestions?

Thanks,

noam

Noam Birnbaum

http://maccentricsolutions.com/

877.luv.macs x89

 Apple Certified Technical Coordinator

 Apple Certified Help Desk Specialist

8 replies

Sign in or join Beachball Help to reply.

  1. 0

    Jeffrey Lee

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    No answers here, but I've got the same problem.

    With that said, it seems during the upgrade, before I messed with Server Admin and was still using just Server Prefs, it was working. I do know it was working at some point, even if briefly.

    But no.. no joy.. PPTP works like a charm, but not L2TP

  2. 0

    neptune2000

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Jeffrey Lee wrote:

    No answers here, but I've got the same problem.

    With that said, it seems during the upgrade, before I messed with Server Admin and was still using just Server Prefs, it was working. I do know it was working at some point, even if briefly.

    But no.. no joy.. PPTP works like a charm, but not L2TP

    Same problem here. I am running 10.5.2.

  3. 0

    manuel veloso

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I've seen that happen a few times. Try bouncing the 'racoon' process and see if that helps.

  4. 0

    Mike Kingsley

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yeah same issue here also. Port 1701 is not opening up. L2TP will not connect at all. PPTP is open but we are getting the MPPE error there. So basically we have no VPN access. Anyone find a way to get L2TP working yet?

    Thanks!

  5. 0

    jwhelan

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    L2TP works fine for me, running 10.5.1

    I don't recall doing anything fancy - just a vanilla setup. I actually have had problems with PPTP rather than L2TP.

  6. 0

    LordCoke

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi,

    you are right l2tp doesn't work for some reason. Because l2tp works with UDP-Port 1701 you can't test the connection with the telnet programm.

    this is what happends for me starting the l2tp vpn connection:

    log:

    08.02.08 10:42:26 pppd[2847] pppd 2.4.2 (Apple version 314) started by root, uid 501

    08.02.08 10:42:26 pppd[2847] L2TP connecting to server 'test.lan' (192.168.200.240)...

    08.02.08 10:42:29 pppd[2847] IPSec connection started

    terminal:

    MacBookPro-DL:~ dl$ sudo setkey -DP

    192.168.200.240[1701] 192.168.200.51[51409] udp

    in ipsec

    esp/transport//require

    spid=47 seq=2 pid=2850

    refcnt=2

    192.168.200.240[any] 192.168.200.51[51409] udp

    in ipsec

    esp/transport//require

    spid=48 seq=1 pid=2850

    refcnt=2

    192.168.200.51[51409] 192.168.200.240[1701] udp

    out ipsec

    esp/transport//require

    spid=46 seq=0 pid=2850

    refcnt=2

    # udp traffic from my client:51409 to server:1701 matches the SPD and will be encrypted

    # looks okay so far

    MacBookPro-DL:~ dl$ sudo netstat -an | grep 51409

    udp4 0 0 192.168.200.51.51409 192.168.200.240.1701

    # here is something listening at the dynamic UDP-port 51409 this may be the l2tp-LAC for this session

    my SAD looks for the 20 seconds initiating phase like this:

    MacBookPro-DL:~ dl$ sudo setkey -D

    192.168.200.51 192.168.200.240

    esp mode=transport spi=173750659(0x0a5b3983) reqid=0(0x00000000)

    E: aes-cbc 5c449fa3 927e0e20 94edc31c 3643f72d

    A: hmac-sha1 21d831d5 cc6a3ced 4277a12d e88d4e35 6f3a4a8c

    seq=0x00000005 replay=4 flags=0x00000000 state=mature

    created: Feb 8 11:03:37 2008 current: Feb 8 11:03:57 2008

    diff: 20(s) hard: 3600(s) soft: 2880(s)

    last: Feb 8 11:03:52 2008 hard: 0(s) soft: 0(s)

    current: 680(bytes) hard: 0(bytes) soft: 0(bytes)

    allocated: 5 hard: 0 soft: 0

    sadb_seq=1 pid=2932 refcnt=2

    192.168.200.240 192.168.200.51

    esp mode=transport spi=169740075(0x0a1e072b) reqid=0(0x00000000)

    E: aes-cbc 2bed0be0 8556a8a9 a85b4c87 abdb393b

    A: hmac-sha1 55b1ca09 d00b9ac2 adf0ae5f 458a9a89 56f12cb6

    seq=0x00000000 replay=4 flags=0x00000000 state=mature

    created: Feb 8 11:03:37 2008 current: Feb 8 11:03:57 2008

    diff: 20(s) hard: 3600(s) soft: 2880(s)

    last: hard: 0(s) soft: 0(s)

    current: 0(bytes) hard: 0(bytes) soft: 0(bytes)

    allocated: 0 hard: 0 soft: 0

    sadb_seq=0 pid=2932 refcnt=2

    strange is here are sent 680 bytes to the vpn-server but nothing is comming back from because the server doesn't receive these packets!

    I did on the vpn-Server: l2tpd stop; and then netcat for udp port 1701

    nc -u -l 1701

    (no output)

    same with a WinXP l2tp-client here comes some l2tp output:

    nc -u -l 1701

    XlX

    X

    <myusername>bb1MicrosoftX

  7. 0

    Leif Carlsson

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Forget Windows XP built-in VPN L2TP client compatibility when OS X server is behind NAT.

    L2TP doesn't even need UDP 1701 but it needs UDP ports 500 and 4500 when OS X server is behind NAT. If the server isn't behind NAT you could need ESP protocol open too (when both client and server use public IPs). Windows XP L2TP VPN clients also work when server isn't behind NAT.

  8. 0

    LordCoke

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Sorry this is wrong. See
    http://en.wikipedia.org/wiki/L2tp#L2TP.2FIPsec

    # the IPSec connection comes up correctly (btw. here isn't any NAT nor NAT-T)

    # you can see it in my posted SADs and SPDs: phase1 and phase2 are okay and working.

    # with 10.4.x the same scenario works perfect (and gives L2TP traffic on the vpn-server if I perform the same test).

    IPSec is up (IKE on Port 500 is done and ESP is useable), the underlaying L2TP produces no traffic. Any ideas for more tests? Wich programm is the l2tp-LAC (client) on Mac OS? vnpd? Here is no running vpnd process when connecting a l2tp vpn endpoint...