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

Post Reply
tedk-42
OpenVpn Newbie
Posts: 3
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: 3
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: 3
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?

novaflash
I should be on the dev team.
Posts: 603
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.

Post Reply