Ubuntu UFW

If you want network accessible virtual machines or containers on your Ubuntu or Mint server or workstation, you will need to pop open tcp forwarding on the UFW (Uncomplicated Firewall) on your host. It’s easy:

sudo vi /etc/default/ufw

Change:

DEFAULT_FORWARD_POLICY="DROP"

To:

DEFAULT_FORWARD_POLICY="ACCEPT"

Then save & exit vi. Finally reload the firewall with

sudo ufw reload

Now your VM packets won’t be blocked due to forwarding.

Leave a Reply

Your email address will not be published. Required fields are marked *