I want to move openvpn server from VM to CT. So far I ...
1. made debian 9 container from template
2. installed openvpn and easy-rsa
3. copied whole /etc/openvpn from VM to CT (replacing original one)
4. turned forwarding on in /etc/sysctl.conf
Also i
5. Commented out LimitNPROC line in /lib/systemd/system/openvpn@.service.
https://askubuntu.com/questions/747023/systemd-fails-to-start-openvpn-in-lxd-managed-16-04-container
and tried to
6. Add additional line to containers .conf file to allow creating /dev/net/tun device following these guides
https://www.hungred.com/how-to/setup-openvpn-on-proxmox-lxc/
https://blog.davidmoodie.com/secure-openvpn-server-ubuntu-16-04-proxmox-container/
But container didnt get up after last point. And before it it did get up but without tun interface.
So my questions are
Q1: Are mentioned quides relevant to Proxmox 5?
Im especially suspicious about adding those entries with "=" sign when all lines in .cfg files are separated with ":"
Q2. I assume that if i have more than one container with openvpn then on HOST machine i would have to make separate /dev/net/tun0, /dev/net/tun1 etc. for each of them?
1. made debian 9 container from template
2. installed openvpn and easy-rsa
3. copied whole /etc/openvpn from VM to CT (replacing original one)
4. turned forwarding on in /etc/sysctl.conf
Also i
5. Commented out LimitNPROC line in /lib/systemd/system/openvpn@.service.
https://askubuntu.com/questions/747023/systemd-fails-to-start-openvpn-in-lxd-managed-16-04-container
and tried to
6. Add additional line to containers .conf file to allow creating /dev/net/tun device following these guides
https://www.hungred.com/how-to/setup-openvpn-on-proxmox-lxc/
https://blog.davidmoodie.com/secure-openvpn-server-ubuntu-16-04-proxmox-container/
But container didnt get up after last point. And before it it did get up but without tun interface.
So my questions are
Q1: Are mentioned quides relevant to Proxmox 5?
Im especially suspicious about adding those entries with "=" sign when all lines in .cfg files are separated with ":"
Q2. I assume that if i have more than one container with openvpn then on HOST machine i would have to make separate /dev/net/tun0, /dev/net/tun1 etc. for each of them?