Page 1 of 1

Reset port setting to default, terminal

Posted: Fri Mar 25, 2022 7:48 pm
by vaalealager
Changed the admin port settings to 1194 then lost connection.
Reinstall doesnt fix the problem.
All help is appreciated!

Using ubuntu 20.4
vm

Re: Reset port setting to default, terminal

Posted: Fri Mar 25, 2022 8:45 pm
by johnds
Try:

sudo apt-get purge openvpn-as

to remove, reboot

Re: Reset port setting to default, terminal

Posted: Fri Mar 25, 2022 9:19 pm
by vaalealager
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?

Re: Reset port setting to default, terminal

Posted: Fri Mar 25, 2022 9:27 pm
by vaalealager
Tried it again.
used sudo apt-get purge openvpn-as.
Reboot and reinstalled.
Still wont work.
Something must be left somewhere.

Re: Reset port setting to default, terminal

Posted: Sat Mar 26, 2022 4:24 pm
by openvpn_inc
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

Re: Reset port setting to default, terminal

Posted: Sat Mar 26, 2022 8:37 pm
by vaalealager
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.

Re: Reset port setting to default, terminal

Posted: Sun Mar 27, 2022 10:24 am
by openvpn_inc
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

Re: Reset port setting to default, terminal

Posted: Mon Mar 28, 2022 9:07 pm
by vaalealager
Thank you Johan!