Customizing openvpnas via cli

Post Reply
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. !!

I should be on the dev team.
Posts: 527
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 "" -v ""
./sacli start

And - specifically the command line section.

Post Reply