Tutorial: Reset OpenVPN Web Services and Daemons to Default Settings
How to reset the web services and daemons for Access Server to the default settings.
Overview
This tutorial guides you through resetting Access Server's web services and daemons to their default settings. This is useful for resolving configuration issues that may lock you out of your web services or restoring an Access Server backup configuration from one system to another with different interface names.
An installed Access Server.
Console access and the ability to get root access.
Connect to the console and get root privileges.
Run these commands to reset the interface names to "all" and restore the default ports:
For Access Server before 3.0.0:
./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 "ssl_api.local_addr" --value "all" ConfigPut ./sacli --key "ssl_api.local_port" --value "945" 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
For Access Server 3.0.0 and later: The
ssl_api
keys are no longer used. You can omit those lines../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
You've now reset your Access Server's web services and daemons to their default settings. This can help restore access and resolve configuration issues.
Tip
You can replace "all
with specific IP addresses if you want to bind services to a particular interface.