AWS Deployment Guide for Openvpn Access Server
Total Page:16
File Type:pdf, Size:1020Kb
AWS Deployment Guide for OpenVPN Access Server April 7, 2020 Table of Contents 1 Introduction .................................................................................................................... 4 1.1 What is a Virtual Private Network (VPN)? ............................................................................ 4 1.2 What is OpenVPN Access Server .......................................................................................... 5 1.2.1 OpenVPN Access Server Functional Architecture ................................................................................. 6 1.2.2 OpenVPN Access Server Features ......................................................................................................... 8 1.3 OpenVPN Access Server Use Cases ...................................................................................... 9 1.3.1 Secure Remote Access .......................................................................................................................... 9 1.3.2 Site-to-site connections to bring networks together .......................................................................... 10 1.3.3 Multiple networks, subnets, gateways, and servers .......................................................................... 10 1.3.4 Secure Internet traffic or contact limited-access systems .................................................................. 11 1.3.5 Secure Access to Cloud-Based Systems .............................................................................................. 12 2 Deploying Access Server ................................................................................................ 12 2.1 Prerequisites and Requirements ........................................................................................ 12 2.2 Typical AWS Deployment ................................................................................................... 13 2.2.1 Deployment Assets ............................................................................................................................. 13 2.2.2 Recommended Deployment ............................................................................................................... 13 2.3 Installation from AWS Marketplace ................................................................................... 14 2.3.1 Installation of Access Server - BYOL .................................................................................................... 14 2.4 Using an external database ................................................................................................ 27 2.4.1 Change database backend to MySQL or Amazon RDS ........................................................................ 27 2.5 High Availability Cluster Configuration .............................................................................. 30 3 Security ......................................................................................................................... 37 3.1 Secure the root user account ............................................................................................. 37 3.2 Secure the openvpn administrative user account ............................................................... 38 3.3 Installing an SSL certificate on the web interface ............................................................... 40 3.4 Hardening the web server cipher suite string ..................................................................... 40 3.5 Going beyond recommended security procedures ............................................................. 41 4 Planning ........................................................................................................................ 41 4.1 Sizing ................................................................................................................................. 41 4.1.1 EC2 Instance sizing .............................................................................................................................. 41 4.1.2 RDS Sizing ............................................................................................................................................ 42 4.2 Costs ................................................................................................................................. 42 4.2.1 Access Server Software Costs ............................................................................................................. 42 4.2.2 Cost of AWS Resources ....................................................................................................................... 42 5 Operations .................................................................................................................... 42 5.1 Logging and Debugging ...................................................................................................... 42 5.1.1 Locating the client log files ................................................................................................................. 43 5.1.2 Locating the server log files ................................................................................................................ 43 2 5.1.3 Setting up log rotation for /var/log/openvpnas.log.* ........................................................................ 44 5.1.4 Logging to syslog instead of the standard log file ............................................................................... 45 5.1.5 Redirecting to an external syslog server ............................................................................................. 46 5.1.6 A list of debugging flags ...................................................................................................................... 46 5.2 Troubleshooting ................................................................................................................ 48 5.2.1 Authentication .................................................................................................................................... 48 5.2.2 VPN Connectivity ................................................................................................................................ 54 5.2.3 DNS Resolution ................................................................................................................................... 55 5.2.4 Clients cannot access the Internet through Access Server ................................................................. 59 5.2.5 Recovering damaged database configuration files ............................................................................. 59 5.2.6 Troubleshooting License Activation .................................................................................................... 61 5.3 Backups & Recovery .......................................................................................................... 70 5.3.1 AWS Backup ........................................................................................................................................ 70 5.3.2 Access Server Configuration Backup ................................................................................................... 71 5.3.3 Recovering Access Server configuration from backup ........................................................................ 73 5.3.4 Backing up and recovering SSL certificates ......................................................................................... 74 6 Support ......................................................................................................................... 79 6.1 Getting support for the OpenVPN Access Server ................................................................ 79 6.2 OpenVPN Connect Client for Windows and macOS ............................................................ 80 6.3 OpenVPN Connect for iOS and Android ............................................................................. 81 7 Access Server Resources ................................................................................................ 81 3 Access Server AWS Deployment Guide 1 Introduction This section provides an introduction to terms such as private network, public network, virtual private network (VPN), VPN Server, and VPN Clients. It then delves deeper into the OpenVPN Access Server, its functional architecture, use cases, and typical AWS deployment. 1.1 What is a Virtual Private Network (VPN)? To understand the term Virtual Private Network, we first need to understand what a Private Network means. We are all well aware of the various services that we obtain from the Internet— world wide web, internet radio, social networking, instant messaging, and other services—these services are meant for public consumption. The servers on the Internet offering these services are meant to be accessed by anyone and are on the public-facing side of the service. While these servers are meant to serve legitimate users, their exposure to the Internet means that these servers on the public network are open to probing and attacks from malicious users. These malicious users probe Internet-accessible servers for security weaknesses and exploit them to access sensitive information. The best way to protect sensitive data and applications is to restrict access to them over public networks such as the Internet. The networks that connect the infrastructure that house sensitive data are isolated from the Internet, to keep them secure, by using a range of IP addresses