EdgeRouter - openVPN restart
-
This shit still doesn't work properly through the EdgeOS-provided
/etc/init.d/openvpnscript. If you do/etc/init.d/openvpn statusorsystemctl status openvpnyou 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 --fullshows 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 interfaceworks 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
setordeletethe following option:interfaces openvpn vtun0 openvpn-option "--cipher AES-256-CBC"then
commitand see withsudo ss -lpn | grep :1194that the thing's started. If OpenVPN is running or doesn't restart, you cankillall openvpna 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
