While trying to setup my L2TP/IPSec VPN with strongswan and the network-manager-l2tp on Ubuntu 17.10 I accidentally deleted the ipsec.conf
file from /etc
.
Reinstalling strongswan didn't help to recreate the ipsec.conf
file. How should I proceed if I still want to configure a L2TP/IPSec VPN connection?
It is reasonably straightforward to retrieve the required conf file from the 17.10 Ubuntu package. Use the following steps from the command line:
This places the configuration file correctly in /etc and from here you will need to use elevated privileges (sudo) to edit the file using your favoured text editor. Once you are happy the testing directory can be safely removed:
The Ubuntu file is by default completely commented out but it gives 2 simple examples, either of which could be a great start for you:
Activate these settings by removing the '#' mark at the beginning of each line and then hopefully all will be well.