GithubHelp home page GithubHelp logo

juanirm / terraform-aws-openvpnserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ventx/terraform-aws-openvpnserver

0.0 0.0 0.0 22 KB

OpenVPN and Access Server with Letsencrypt on EC2

License: MIT License

HCL 44.54% Shell 55.46%

terraform-aws-openvpnserver's Introduction

alt text

Terraform AWS OpenVPNServer

Range of application

  • Deploys an OpenVPN and Access Server with Letsencrypt SSL Certificate on EC2
  • LetsEncrypt hook to put certificate into OpenVPN-AS config and restart openvpnas service

Basic Settings

Customize your OpenVPNServer with these Inputs

Logoutput on the EC2 Instance

Setup logfile /tmp/setup.log

LetsEncrypt auto renew logfile /var/log/letsencrypt-renew.log

Advanced Settings

For VPN Routing and advanced settings use the Access Server command line interface tools

To use ./sacli navigate to /usr/local/openvpn_as/scripts/

Default settings never route any client traffic through the VPN

You can change this in userdata.sh befor creating the instance but you also can change this after that on the EC2 Instance.

sacli commands examples (no client traffic routing through the VPN connection)

 ./sacli --key "vpn.client.routing.reroute_dns" --value "false" ConfigPut
 ./sacli --key "vpn.client.routing.reroute_gw" --value "false" ConfigPut

Usage

If everything went well :) you can access your OpenVPN Access server via your browser.

Check your specified Admin URL in the outputs of this terraform module

Username: openvpn

Password: ( set your password with ${var.passwd}

Links

Inputs

Name Description Type Default Required
ami AWS AMI to use string ami-090f10efc254eaf55 no
domain Domain Name string n/a yes
instancename Name of the Instance string n/a yes
instancetype AWS Instance Type string n/a yes
key_city OpenVPN CA City Name string n/a yes
key_country OpenVPN CA Country Name string n/a yes
key_email OpenVPN CA Email Contact string n/a yes
key_org OpenVPN CA Organisation Name string n/a yes
key_ou OpenVPN Organisation Unit Name string n/a yes
key_province OpenVPN CA Province Name string n/a yes
keyname SSH Access Key string n/a yes
owner AWS Tag for Owner string n/a yes
passwd OpenVPN User Password for AdminUser:openvpn string n/a yes
profile Aws Profile to use string n/a yes
region Region to use string n/a yes
sslmail LetsEncrypt Contact Email string n/a yes
subdomain Subdomain string n/a yes
subnetid Subnet for the EC2 instance string n/a yes
vpc AWS VPC to be used string n/a yes

Outputs

Name Description
Domain Name TLD for the OpenVPNServer
adminurl Admin Access URL for the OpenVPNServer
arn Your VPC ARN
instancearn Instance ARN
instancetype Instance Type
iprange VPC Iprage
keyname SSH Access Key Name
privateip Instance Private IP
pubplicip The Instance Public IP
route table Route Table
sg_id SecurityGroup ID
sg_name SecurityGroup Name
userdata Userdata Hash
vpc_id VPC ID
vpc_name VPC Name

terraform-aws-openvpnserver's People

Contributors

2kohm avatar flobeier avatar hajowieland avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.