Changed the admin port settings to 1194 then lost connection.
Reinstall doesnt fix the problem.
All help is appreciated!
Using ubuntu 20.4
vm
Reset port setting to default, terminal
-
- OpenVpn Newbie
- Posts: 8
- Joined: Fri Mar 25, 2022 7:43 pm
-
- OpenVpn Newbie
- Posts: 9
- Joined: Fri Mar 04, 2022 3:17 pm
Re: Reset port setting to default, terminal
Try:
sudo apt-get purge openvpn-as
to remove, reboot
sudo apt-get purge openvpn-as
to remove, reboot
-
- OpenVpn Newbie
- Posts: 8
- Joined: Fri Mar 25, 2022 7:43 pm
Re: Reset port setting to default, terminal
Tried it before.
When reinstalled i dont get the admin access server page address or new password.
I think there are some configurations that i just dont know how to revert or change.
How can i edit openvpn ports in the server terminal?
When reinstalled i dont get the admin access server page address or new password.
I think there are some configurations that i just dont know how to revert or change.
How can i edit openvpn ports in the server terminal?
-
- OpenVpn Newbie
- Posts: 8
- Joined: Fri Mar 25, 2022 7:43 pm
Re: Reset port setting to default, terminal
Tried it again.
used sudo apt-get purge openvpn-as.
Reboot and reinstalled.
Still wont work.
Something must be left somewhere.
used sudo apt-get purge openvpn-as.
Reboot and reinstalled.
Still wont work.
Something must be left somewhere.
- openvpn_inc
- OpenVPN Inc.
- Posts: 1332
- Joined: Tue Feb 16, 2021 10:41 am
Re: Reset port setting to default, terminal
Hello vaalealgar,
First a word of caution - if you remove Access Server you lose all configuration including all certificates meaning if you're trying to fix a situation that is already in production use you are going to have to reinstall all VPN clients after deleting configuration. Just so future readers are aware.
Now then, after doing apt --purge remove openvpn-as openvpn-as-bundled-clients, Access Server should be pretty much blown away. You can clean up the /usr/local/openvpn_as/ directory by deleting it entirely. Then there will be no configuration or backups or anything left at all.
But you shouldn't do this as a first step. If your configuration is broken then fix your configuration or reset your configuration. Removing the program is an over-the-top approach that should be tried last.
I recommend you try to reset ports and interfaces to defaults. Go to this page and go to the section titled "Reset interface and port configuration to default" and run the commands there:
https://openvpn.net/vpn-server-resource ... -function/
Then try again. If you still have a failure, try reading /var/log/openvpnas.log for any obvious problems. If that doesn't reveal anything then try resetting your configuration entirely. Note that this wipes all settings and you will lose certificates and such that are generated on this server. You'll start fresh, basically. Run this command to do this:
ovpn-init
If after this you still have a failure, then try the apt --purge remove thing and doing a reinstall from instructions on our website. If then things are still broken you've encountered an unexpected situation and we suggest you send /var/log/openvpnas.log to our support ticket system for analysis with details of your system and what you've done to date to this system to get it into this state. We'll then try to figure out a solution.
Kind regards,
Johan
First a word of caution - if you remove Access Server you lose all configuration including all certificates meaning if you're trying to fix a situation that is already in production use you are going to have to reinstall all VPN clients after deleting configuration. Just so future readers are aware.
Now then, after doing apt --purge remove openvpn-as openvpn-as-bundled-clients, Access Server should be pretty much blown away. You can clean up the /usr/local/openvpn_as/ directory by deleting it entirely. Then there will be no configuration or backups or anything left at all.
But you shouldn't do this as a first step. If your configuration is broken then fix your configuration or reset your configuration. Removing the program is an over-the-top approach that should be tried last.
I recommend you try to reset ports and interfaces to defaults. Go to this page and go to the section titled "Reset interface and port configuration to default" and run the commands there:
https://openvpn.net/vpn-server-resource ... -function/
Then try again. If you still have a failure, try reading /var/log/openvpnas.log for any obvious problems. If that doesn't reveal anything then try resetting your configuration entirely. Note that this wipes all settings and you will lose certificates and such that are generated on this server. You'll start fresh, basically. Run this command to do this:
ovpn-init
If after this you still have a failure, then try the apt --purge remove thing and doing a reinstall from instructions on our website. If then things are still broken you've encountered an unexpected situation and we suggest you send /var/log/openvpnas.log to our support ticket system for analysis with details of your system and what you've done to date to this system to get it into this state. We'll then try to figure out a solution.
Kind regards,
Johan

Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
-
- OpenVpn Newbie
- Posts: 8
- Joined: Fri Mar 25, 2022 7:43 pm
Re: Reset port setting to default, terminal
Thank you Johan for comprehensive answer.
After i reinstalled i cant seem to reset interface and port configuration to default.
bash: ./sacli: No such file or directory
Im logged as root.
After i reinstalled i cant seem to reset interface and port configuration to default.
bash: ./sacli: No such file or directory
Im logged as root.
- openvpn_inc
- OpenVPN Inc.
- Posts: 1332
- Joined: Tue Feb 16, 2021 10:41 am
Re: Reset port setting to default, terminal
Hello vaalealgar,
All command line commands for Access Server are expected to be run as root user in the /usr/local/openvpn_as/scripts/ directory.
If you removed Access Server, or you are not in that directory, or you are not root, then you won't be able to run these commands.
Kind regards,
Johan
All command line commands for Access Server are expected to be run as root user in the /usr/local/openvpn_as/scripts/ directory.
If you removed Access Server, or you are not in that directory, or you are not root, then you won't be able to run these commands.
Kind regards,
Johan

Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support
-
- OpenVpn Newbie
- Posts: 8
- Joined: Fri Mar 25, 2022 7:43 pm
Re: Reset port setting to default, terminal
Thank you Johan!