Page 1 of 1

I broke the VPN server webgui

Posted: Thu Feb 11, 2021 6:03 pm
by ronr
Via the webGUI I clicked on having the non-admin webpage be available via the same IP but port 443 and now neither the vpn admin or non-admin web pages will come up.

Site can't be reached is all I'm getting.

Any thoughts?

Re: I broke the VPN server webgui

Posted: Tue Feb 16, 2021 12:26 pm
by openvpn_inc
Hello,

I am not sure of any other settings you might have, but in general, I would recommend to run the reset commands to set the ports of all Access Server services back to their defaults. That should ensure things will be up and running again.

From our documentation at: https://openvpn.net/vpn-server-resource ... o_defaults

You can run these commands as root user on your Access Server:
cd /usr/local/openvpn_as/scripts/
./sacli --key "admin_ui.https.ip_address" --value "all" ConfigPut
./sacli --key "admin_ui.https.port" --value "943" ConfigPut
./sacli --key "cs.https.ip_address" --value "all" ConfigPut
./sacli --key "cs.https.port" --value "943" ConfigPut
./sacli --key "vpn.server.port_share.enable" --value "true" ConfigPut
./sacli --key "vpn.server.port_share.service" --value "admin+client" ConfigPut
./sacli --key "vpn.daemon.0.server.ip_address" --value "all" ConfigPut
./sacli --key "vpn.daemon.0.listen.ip_address" --value "all" ConfigPut
./sacli --key "vpn.server.daemon.udp.port" --value "1194" ConfigPut
./sacli --key "vpn.server.daemon.tcp.port" --value "443" ConfigPut
./sacli start

As you can see from the commands above, it just resets things so that all services are listening on their default ports on all interfaces again, which is usually what most people start out with. You can then try again to configure things as you wish.

Kind regards,
Johan