Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openvpn-access-server-scripts

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openvpn-access-server-scripts

npm module containing scripts that are used to run further setup steps on the OpenVPN and PiHole EC2 instances created in the openvpn-access-server-infra CDK project

  • 0.0.2-beta.19
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

openvpn-access-server-scripts

A node module that holds a collection of scripts that will be used by EC2 instances spawned in the openvpn-access-server-infra infrastructure deployment to complete the setup of OpenVPN Access Server and PiHole.

Scripts in this module are not standalone. They are built specifically to run based on infrastructure that has been set up in openvpn-access-server-infra. Usage of these scripts beyond that context may not have desired results.

Usage

Example to run the OpenVPN script:

npx openvpn-access-server-scripts setup-openvpn -i 1.0.0.1 -h my.vpn.foo-bar.com -d my.vpn.foo-bar.com -e foo@bar.com -b foo-bar-bucket -r ap-southeast-1 -u user -p 123@abc -c staging
  1. -i: An optional option to specify an upstream DNS server (in this context, the server that Pi Hole is running on) so that OpenVPN will forward traffic to this upstream DNS for further processing

Example to run the PiHole script:

npx openvpn-access-server-scripts setup-pihole -r ap-southeast-1 -p abc!@123

Available Functions

setup-openvpn

This function:

  1. sets up open vpn with a default client user
  2. optionally sets up open vpn with an upstream dns server (if -i, --ip is defined)
  3. registers an SSL certificate via Lets Encrypt for the OpenVPN Access Server web interface so that it can be properly accessed via HTTPS.

After requesting a new certificate, this function will store the generated certificate in an S3 bucket for reuse. This is because there's a rate limit of 5 certificates for the same domain name per week. If a certificate already exists, this function will get those artifacts and reuse them when assigning the certificate to OpenVPN Access Server.

OptionRequiredDescription
-i --ip:x:The private ip address of the upstream dns ec2 instance
-h --host-name:heavy_check_mark:The FQDN (or public) address that will be the host of this VPN Access Server that vpn clients connect to
-d --domain-name:heavy_check_mark:The FQDN to be used for certificate registration
-e --email:heavy_check_mark:The email to use for certificate registration
-b --bucket:heavy_check_mark:The S3 Bucket to store/obtain certificate artifacts
-r --region:heavy_check_mark:The AWS region for the S3 SDK client to use
-u --user-name:heavy_check_mark:The default vpn client username
-p --user-password:heavy_check_mark:The default vpn client password (special characters need to be handled before they are passed here)
-c --cert-environment:x:Which environment should be used when requesting SSL cert from Lets Encrypt (staging, production)

setup-pihole

Installs Pi Hole as a DNS server for Ad Blocking and sets up Unbound to serve as a recursive DNS service. Also installs some additional tooling to enhance Pi Hole functionality.

OptionRequiredDescription
-r --region:heavy_check_mark:The AWS region for the S3 SDK client to use
-p --password:heavy_check_mark:The pi hole web interface password (special characters need to be handled before they are passed here)

Publishing

A note about versions:

Versioning follows semantic versioning.

semver is installed to help with this.

To create a beta release:

npm run publish:beta

To create a patch release:

npm run publish

Keywords

FAQs

Package last updated on 18 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc