@odragon
I don't believe creating multiple jails will solve your issue, I've experienced this in the past when creating a VPN within my
Warden Jail,
and the settings do NOT play nice. Random failure could still occur regardless of whether which host it picked up.
This was most likely due to a lack of "keep alive" packets being sent by the Open VPN server or being answered by the VPN Host.
Note: I haven't moved this service over to
iocage yet since
Open VPN is still a bit unstable on it, but I would assume the steps would be similar once established.
To resolve this I simply created a
Cron Job which restarts the VPN hourly to prevent this (drops occurred every 2 - 5 hrs on avg for me)
To do this log in to your FreeNAS host from the
Web GUI, and head to:
Shell
Find the hostname of your jail: jls
[root@frenashost ~]#
jls
JID IP Address Hostname Path
1 transmission /mnt/container/transmission
2 plex /mnt/iocage/jails/plex/root
Next head to: Tasks > Cron Jobs and set up your Cron job using the following parameters:
- Description: Force Open VPN service to restart every (1) Hours to prevent shutdown from re-occurring
- Command: jexec jailhostname service openvpn onestart
- Run As User: root
Note:
Never use the
Jail ID # ( JID) as the JID will change if you restart the jail or reboot the NAS Host itself