Customizing openvpnas via cli

gaurav1986
OpenVpn Newbie
Posts: 1
Joined: Wed Jun 28, 2017 7:06 am

Customizing openvpnas via cli

Postby 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. !!

novaflash
OpenVPN Expert
Posts: 383
Joined: Fri Apr 13, 2012 8:43 pm

Re: Customizing openvpnas via cli

Postby 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.


Return to “Access Server”

Who is online

Users browsing this forum: No registered users and 3 guests