Last weekend, I had some spare time and I installed Lucid Lynx on my laptop. I tried (again) to get OpenVPN working with Network Manager. As usually it failed, although I was pretty sure everything I did was correct.
So I decided to import my existing openvpn configuration file and export it back to see if there's something different. After doing this, I've noticed a few difference, but most of them were just due to syntax. However, two lines looked more interesting:
user openvpnI've checked and saw that with these lines in the configuration file, the openvpn connection failed to start even from the terminal. Therefore, I did the following:
group openvpn
- create the openvpn group as a system group using
groupadd -r openvpn
- assign the openvpn group to the directory (and files) that holds my openvpn key and certificates (mine and server's):
chgrp -R openvpn openvpn_folder
- assign group read permissions to the openvpn settings directory and remove permissions for others:
chmod g+r,o-rwx openvpn_folder