Customizing openvpnas via cli

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
gaurav1986
OpenVpn Newbie
Posts: 1
Joined: Wed Jun 28, 2017 7:06 am

Customizing openvpnas via cli

Post by gaurav1986 » Tue Jul 04, 2017 1:26 am

Hi Team,

I am looking for CLI commands to do the following on an openvpn launched from an AMI created from another openvpnas:
- change hostname
Since the AMI would launch an exact copy of access-server the hostname would also be the hostname of the server the image was created from.
It's quite easy to just replace the name from web UI but my problem is I am trying to use this AMI in my cloudformation script and need to automate this by passing CLI commands via user-data.

I have been trying to google for a while but could not really find much.

Any help would mean world. Thank you in advance. !!

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: Customizing openvpnas via cli

Post by novaflash » Tue Jul 04, 2017 11:22 am

Look at these commands:

cd /usr/local/openvpn_as/scripts/
./confdba -s
./confdba -mk "parameter.name.here" -v "new.value.here"
./sacli start

And https://docs.openvpn.net/access-server/ - specifically the command line section.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

Post Reply