...
I actually use both techniques together.
Warning |
---|
Make sure to change the password or better remove the default ubuntu account generated by the lxc creation script before making the container accessible to the Internet. (Roderick, please add this as a step further down). |
UFW
UFW in the Host
UFW is a great simple firewall, but at this point I do not recommend installing on your host. First, port forwarding is overly complex and seems like a hack versus it being very simple with IP Tables.
...