Skip to content

Regression in L2TP/IPsec VPN to Meraki MX: Pre-existing Connections Work After Upgrade But New Profiles Fail in Debian 12/Ubuntu 24.04 #237

@Lonniebiz

Description

@Lonniebiz

Bug Description

L2TP/IPsec VPN connections to Meraki MX firewalls fail to establish on fresh installations of Debian 12 and Ubuntu 24.04, while existing connections created in earlier versions survive an upgrade but cannot be recreated if deleted.

Environment

  • Potentially Affected Packages:
    • network-manager-l2tp
    • network-manager-l2tp-gnome
    • network-manager-strongswan
    • strongswan-nm
    • xl2tpd
    • Any dependencies of these packages that may have changed in newer distributions
  • Operating Systems Affected:
    • Debian 12 (Bookworm) - fresh install
    • Ubuntu 24.04 LTS (Noble Numbat) - fresh install
    • Debian 12 (upgraded from Debian 11) - for new VPN profiles only
    • Ubuntu 24.04 (upgraded from Ubuntu 22.04) - for new VPN profiles only
  • Operating Systems Working:
    • Debian 11 (Bullseye)
    • Ubuntu 22.04 LTS (Jammy Jellyfish)
    • Debian 12 (upgraded from Debian 11) - only for pre-existing VPN profiles
    • Ubuntu 24.04 (upgraded from Ubuntu 22.04) - only for pre-existing VPN profiles
  • Hardware Tested:
    • ASUS Zenbook 14 OLED
    • Lenovo IdeaPad 15IAu7
    • Virtual machines
  • VPN Type: L2TP/IPsec with PSK and username/password authentication
  • VPN Server: Meraki MX Firewall

Steps to Reproduce

  1. Fresh install of Debian 12 or Ubuntu 24.04
  2. Install required packages: network-manager-l2tp, network-manager-l2tp-gnome, network-manager-strongswan, strongswan-nm
  3. Configure L2TP/IPsec VPN connection to Meraki MX firewall following these steps
  4. Attempt to connect to the VPN

Expected Behavior

VPN connection established successfully.

Actual Behavior

VPN connection fails to establish.

Regression Information

This is a critical regression that affects both fresh installations and the ability to create new connections on upgraded systems:

  1. VPN connections work perfectly on Debian 11 and Ubuntu 22.04
  2. Pre-existing VPN connections continue to work after upgrading to Debian 12/Ubuntu 24.04
  3. CRITICAL: On upgraded systems, if you delete a working VPN profile, you CANNOT recreate it successfully
  4. CRITICAL: On upgraded systems, creating additional VPN profiles for other users or with different names also fails
  5. All attempts to create new VPN profiles on fresh installations of Debian 12/Ubuntu 24.04 fail

Additional Testing Details

I've conducted extensive testing to confirm this regression:

  1. I installed Ubuntu 22.04 fresh on a Lenovo IdeaPad 15IAu7, and the VPN setup worked perfectly following the guide.

  2. I then upgraded this system to Ubuntu 24.04.2, and the pre-existing VPN configuration continued to work correctly.

  3. After the upgrade to 24.04.2, I attempted to:

    • Create another VPN profile for a different user - FAILED
    • Create another profile with different credentials - FAILED
    • Create another entry for the same user with a different profile name - FAILED
  4. Most critically: When I deleted the working VPN profile that was originally created in 22.04, I was completely unable to recreate it in 24.04.2, even with identical settings.

  5. I have concerns that even modifying the working VPN profile (e.g., updating a password) might corrupt

Final Thoughts and Request for Help

I'm submitting this report with the hope that someone can help identify where this regression is occurring. I've spent considerable time testing and documenting this issue, as it's forcing me to revert to Windows for new deployments where I'd strongly prefer to use Linux.

While I've filed this with the network-manager-l2tp project as a starting point, I recognize the issue could be in any of the related packages or their interactions. If you're reading this and have insights about which component might be causing this regression, or if you have a workaround beyond the one I've discovered, I'd be incredibly grateful for your assistance.

Has anyone else experienced similar issues with L2TP/IPsec VPNs on the newer distributions? Is there something fundamental that changed in how these components interact in Debian 12 and Ubuntu 24.04 that might explain why existing configurations work but new ones fail?

Thank you in advance for any help or insights you can provide.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions