EdgeRouter - openVPN restart
-
This shit still doesn't work properly through the EdgeOS-provided
/etc/init.d/openvpn
script. If you do/etc/init.d/openvpn status
orsystemctl status openvpn
you get a green-light active (exited) but this is deceiving because it's a one-shot service and not a proper systemd daemon.systemctl edit --full
shows the following piece of crap "service":[Unit] Description=OpenVPN service After=network.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/true ExecReload=/bin/true WorkingDirectory=/etc/openvpn [Install] WantedBy=multi-user.target
/bin/true
? Are you fucking kidding me, Ubiquiti? I pay thousands of €s for your shit and you still manage to be so bad at Linuxing. At least don't pretend you have a service or properly document your shit, ubnt.https://community.ui.com/questions/Restarting-OpenVPN/2e5c4e8b-ab61-49f1-a25b-e5aa23130d48 suggests that
reset openvpn interface
works but… it didn't. You can try it before you try the following.What helped me was to change settings so the config got regenerated. For example you could
set
ordelete
the following option:interfaces openvpn vtun0 openvpn-option "--cipher AES-256-CBC"
then
commit
and see withsudo ss -lpn | grep :1194
that the thing's started. If OpenVPN is running or doesn't restart, you cankillall openvpn
a few times with forced Enter (hit the Enter key very hard, it's important) before you change the settings.Just wanted to mention this to anyone finding this thread through "openvpn restart edgerouter doesn't work" in google or similar. I hope I sweared enough for my first fucking post in this damn nice forum