So I have a couple of SSID’s which are behind firewalls which means it can only reach my VPN’s on particular ports.
I therefore would like to use a particular VPN profile based on the SSID name.
I am quite comfortable on the shell so can always invoke openvpn with the appropriate configuration file - but then the WebGUI does not reflect the “true state”.
Is there a particular way I can change this in a manner that will reflect in the gl-inet WebGUI?
Things I have tried:
- Merely killing openvpn and pointing to the new ovpn file - WebGUI still reflects the previous choice in the webGUI
- curl script to login (this works) and then call openvpn_cgi with the ovpn-filename, struggling to get this to work, probably because I do not know how to handle the CSRF token header
- Call the openvpn_cgi directly - this is a binary though and wants me to authenticate so no idea how
Any tips welcome!