cisagov / ansible-role-openvpn

Ansible role to install an OpenVPN server and configure it to authenticate users certificates against FreeIPA.
Creative Commons Zero v1.0 Universal
8 stars 2 forks source link

Use ufw for NAT #24

Closed jsf9k closed 4 years ago

jsf9k commented 4 years ago

πŸ—£ Description

This pull request modifies the Ansible role to install ufw and set up NATing via the ufw configuration instead of directly using iptables.

πŸ’­ Motivation and Context

We previously set up NATing using iptables directly. Now that we are required to harden the OpenVPN AMI, it ends up with ufw installed. As a result, it makes more sense now to set up the NAT via ufw, so that all the firewall configuration is consolidated and ufw and the iptables-restore toolchain don't clobber each other.

Tangentially related to cisagov/openvpn-packer#24.

See also cisagov/openvpn-server-tf-module#40.

πŸ§ͺ Testing

These changes have been used to deploy a working OpenVPN AMI to our staging COOL environment.

πŸš₯ Types of Changes

βœ… Checklist