AWS (Amazon) AMI for OpenVPNAS - Cloud-init reference?

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
tedk-42
OpenVpn Newbie
Posts: 4
Joined: Tue Dec 20, 2016 7:02 am

AWS (Amazon) AMI for OpenVPNAS - Cloud-init reference?

Post by tedk-42 » Tue Dec 20, 2016 7:35 am

Does this exist? If so my Google skills are lacking :lol:

Basically I want to automate the build of the Openvpn server using Terraform and use cloud-init for the Openvpn configuration but I can't find anything on it.

I can SSH into the EC2 instance and can confirm cloud-init package is installed and I have a sample text file which has the parameters below which can be passed into the 'user_data' attribute in Terraform:

admin_user=test
admin_pw=testpassword
reroute_gw=0
reroute_dns=1

tedk-42
OpenVpn Newbie
Posts: 4
Joined: Tue Dec 20, 2016 7:02 am

Re: AWS (Amazon) AMI for OpenVPNAS - Cloud-init reference?

Post by tedk-42 » Tue Jan 10, 2017 4:02 am

Bumps allowed?

No-one knows any extra key-value pairs I can pass into cloud-init?

tedk-42
OpenVpn Newbie
Posts: 4
Joined: Tue Dec 20, 2016 7:02 am

Re: AWS (Amazon) AMI for OpenVPNAS - Cloud-init reference?

Post by tedk-42 » Tue Jan 17, 2017 3:14 am

To answer my own question, I found this document: https://docs.openvpn.net/how-to-tutoria ... art-guide/

public_hostname -- hostname that clients should use to contact the server.

admin_user (default=openvpn) -- Access Server administrative account name.

admin_pw -- administrative account initial password. Note that
this parameter is communicated to the instance via a
cleartext channel. A more secure method would be to ssh
to the instance and use the passwd command to set the
password.

license -- Access Server license key (without a license key, the
Access Server will support up to 2 concurrent connections).

reroute_gw (boolean, default=0) -- if 1, clients will route internet
traffic through the VPN.

reroute_dns (boolean, default=0) -- if 1, clients will route DNS
queries through the VPN.

jgomo3
OpenVpn Newbie
Posts: 2
Joined: Wed Dec 27, 2017 6:54 pm

Re: AWS (Amazon) AMI for OpenVPNAS - Cloud-init reference?

Post by jgomo3 » Wed Dec 27, 2017 6:55 pm

tedk-42 wrote:
Tue Jan 17, 2017 3:14 am
To answer my own question, I found this document: https://docs.openvpn.net/how-to-tutoria ... art-guide/
.
.
.
I don't find any mention to Cloud-Init in that document. Is that the right link?

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

Re: AWS (Amazon) AMI for OpenVPNAS - Cloud-init reference?

Post by novaflash » Thu Dec 28, 2017 4:46 pm

It may be the right link but the whole documentation site was refreshed a few months ago. So that information may have been cleared away or is put somewhere else on the documentation site. This is the danger of reviving a year-old thread from the dead.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

tedk-42
OpenVpn Newbie
Posts: 4
Joined: Tue Dec 20, 2016 7:02 am

Re: AWS (Amazon) AMI for OpenVPNAS - Cloud-init reference?

Post by tedk-42 » Fri May 04, 2018 12:39 am

Indeed it has been refreshed for worse. You can't auto deploy the CLI configuration, instead it wants user input now every time

Post Reply