I had some issues getting the Meraki VPN to work with Ubuntu, which uses L2TP over IPsec. There is an official guide, but it just says that it doesn’t work properly with xl2tp. I figured I might a well document how I got it working.
Install L2TP
Wasn’t installed on my computer, so probably the same for yours. If you don’t run gnome, you can remove the -gnome
at the end.
sudo apt install network-manager-l2tp-gnome
Configure the network
- Go to Settings > Network.
- Press the + to add a VPN
- Select “Layer 2 Tunneling Protocol”
- Add Gateway, and username and password if you wish.
- Click “IPsec Settings…”
- Add your preshared key.
- Make sure “Enable IPsec tunnel to L2TP host” and “Enforce UDP capsulation” are activated. Everything else should be off.
- Set Phase1 Algorithms to “3des-sha1-modp1024”
- Set Phase2 Algorithms to “3des-sha1”
- Press OK and then save the connection.
- Try to connect to the VPN, but it will probably fail.
- Turn off the xl2tpd service:
sudo systemctl stop xl2tpd
- Try to connect to the VPN, and it should work.
You might as well disable xl2tpd, so you don’t have to manually turn it off after reboot: sudo systemctl disable xl2tpd
.