Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

L2TP over IPSec behind NAT.

Hi All,

Has anyone managed to get the L2TP over IPSec VPN going behind NAT?

In our situation our upstream provider NATs all our traffic to a few public IPs reserved for our use (don't ask why, I hate it... apparently for "security" they can't route these to us), so it breaks L2TP over IPSec VPN. Microsoft Forefront worked around this somehow, but now we're transitioning to Sophos and I'm having a hard time getting it to work.

Any ideas?

I'm testing from my iPhone on my private WiFi at home, the Sophos is at work. I've replaced the Sophos and iPhone's public IPs, 10.9.219.254 is the Sophos' IP on our upstream provider's network (External interface in Sophos' eyes) and 192.168.1.159 is my iPhone's private IP.

Sophos (10.9.219.254) --> Upstream provider (10.9.219.1) --> our public IP 

2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: received Vendor ID payload [RFC 3947]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: ignoring Vendor ID payload [4df37928e9fc4fd1b3262170d515c662]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: ignoring Vendor ID payload [8f8d83826d246b6fc7a8a6a428c11de8]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: ignoring Vendor ID payload [439b59f8ba676c4c7737ae22eab8f582]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: ignoring Vendor ID payload [4d1e0e136deafa34c4f3ea9f02ec7285]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: ignoring Vendor ID payload [80d0bb3def54565ee84645d4c85ce3ee]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: ignoring Vendor ID payload [9909b64eed937c6573de52ace952fa6b]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: ignoring Vendor ID payload [draft-ietf-ipsec-nat-t-ike-03]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: ignoring Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: ignoring Vendor ID payload [draft-ietf-ipsec-nat-t-ike-02_n]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: ignoring Vendor ID payload [FRAGMENTATION 80000000]
2014:12:28-19:17:53 sophos pluto[6236]: packet from :500: received Vendor ID payload [Dead Peer Detection]
2014:12:28-19:17:53 sophos pluto[6236]: "L_for admin"[3]  #4: responding to Main Mode from unknown peer 
2014:12:28-19:17:53 sophos pluto[6236]: "L_for admin"[3]  #4: NAT-Traversal: Result using RFC 3947: both are NATed
2014:12:28-19:17:53 sophos pluto[6236]: "L_for admin"[3]  #4: ignoring informational payload, type IPSEC_INITIAL_CONTACT
2014:12:28-19:17:53 sophos pluto[6236]: "L_for admin"[3]  #4: Peer ID is ID_IPV4_ADDR: '192.168.1.159'
2014:12:28-19:17:53 sophos pluto[6236]: "L_for admin"[4]  #4: deleting connection "L_for admin"[3] instance with peer  {isakmp=#0/ipsec=#0}
2014:12:28-19:17:53 sophos pluto[6236]: "L_for admin"[4]  #4: Dead Peer Detection (RFC 3706) enabled
2014:12:28-19:17:53 sophos pluto[6236]: | NAT-T: new mapping :500/4501)
2014:12:28-19:17:53 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sent MR3, ISAKMP SA established
2014:12:28-19:17:54 sophos pluto[6236]: "L_for admin"[4] :4501 #4: cannot respond to IPsec SA request because no connection is known for /32===10.9.219.254:4500[10.9.219.254]:17/1701...:4501[192.168.1.159]:17/%any==={192.168.1.159/32}
2014:12:28-19:17:54 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sending encrypted notification INVALID_ID_INFORMATION to :4501
2014:12:28-19:17:57 sophos pluto[6236]: "L_for admin"[4] :4501 #4: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0x09bbfafc (perhaps this is a duplicated packet)
2014:12:28-19:17:57 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sending encrypted notification INVALID_MESSAGE_ID to :4501
2014:12:28-19:18:01 sophos pluto[6236]: "L_for admin"[4] :4501 #4: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0x09bbfafc (perhaps this is a duplicated packet)
2014:12:28-19:18:01 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sending encrypted notification INVALID_MESSAGE_ID to :4501
2014:12:28-19:18:04 sophos pluto[6236]: "L_for admin"[4] :4501 #4: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0x09bbfafc (perhaps this is a duplicated packet)
2014:12:28-19:18:04 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sending encrypted notification INVALID_MESSAGE_ID to :4501
2014:12:28-19:18:07 sophos pluto[6236]: "L_for admin"[4] :4501 #4: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0x09bbfafc (perhaps this is a duplicated packet)
2014:12:28-19:18:07 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sending encrypted notification INVALID_MESSAGE_ID to :4501
2014:12:28-19:18:11 sophos pluto[6236]: "L_for admin"[4] :4501 #4: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0x09bbfafc (perhaps this is a duplicated packet)
2014:12:28-19:18:11 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sending encrypted notification INVALID_MESSAGE_ID to :4501
2014:12:28-19:18:14 sophos pluto[6236]: "L_for admin"[4] :4501 #4: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0x09bbfafc (perhaps this is a duplicated packet)
2014:12:28-19:18:14 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sending encrypted notification INVALID_MESSAGE_ID to :4501
2014:12:28-19:18:17 sophos pluto[6236]: "L_for admin"[4] :4501 #4: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0x09bbfafc (perhaps this is a duplicated packet)
2014:12:28-19:18:17 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sending encrypted notification INVALID_MESSAGE_ID to :4501
2014:12:28-19:18:20 sophos pluto[6236]: "L_for admin"[4] :4501 #4: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0x09bbfafc (perhaps this is a duplicated packet)
2014:12:28-19:18:20 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sending encrypted notification INVALID_MESSAGE_ID to :4501
2014:12:28-19:18:24 sophos pluto[6236]: "L_for admin"[4] :4501 #4: Quick Mode I1 message is unacceptable because it uses a previously used Message ID 0x09bbfafc (perhaps this is a duplicated packet)
2014:12:28-19:18:24 sophos pluto[6236]: "L_for admin"[4] :4501 #4: sending encrypted notification INVALID_MESSAGE_ID to :4501
2014:12:28-19:18:24 sophos pluto[6236]: "L_for admin"[4] :4501 #4: received Delete SA payload: deleting ISAKMP State #4
2014:12:28-19:18:24 sophos pluto[6236]: "L_for admin"[4] :4501: deleting connection "L_for admin"[4] instance with peer  {isakmp=#0/ipsec=#0}
2014:12:28-19:18:24 sophos pluto[6236]: ERROR: asynchronous network error report on eth1 for message to  port 4501, complainant : Connection refused [errno 111, origin ICMP type 3 code 3 (not authenticated)]


This thread was automatically locked due to age.
  • Hi, Recursion, and welcome to the User BB!

    It is not possible for the L2TP/IPsec server to work behind a NAT with the standard Windows client. My preferred solution for Windows environments with Active Directory is the SSL VPN.

    Cheers - Bob

    Sorry for any short responses.  Posted from my iPhone.
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi, Recursion, and welcome to the User BB!

    It is not possible for the L2TP/IPsec server to work behind a NAT with the standard Windows client. My preferred solution for Windows environments with Active Directory is the SSL VPN.

    Cheers - Bob

    Sorry for any short responses.  Posted from my iPhone.



    The Windows client it self will if you change a registry entry (see How to configure an L2TP/IPsec server behind a NAT-T device in Windows Vista and in Windows Server 2008 ).

    This used to work with iPhones, Macs and Windows clients back when we were using Microsoft Forefront TMG with an L2TP/IPsec VPN, but now not with Sophos. I have a feeling this is to do with Pluto since a colleague of mine tried this on a vanilla Linux box a while back and had the same issue.

    Is there any way around this on Sophos without using SSL VPN? I'd rather not have to install OpenVPN clients everywhere.