Xen and UFW (ubuntu)

I spent a couple of hours today tracking down a problem with a ubuntu server Dom0:  the DomUs’ network would not work properly, communication to the Dom0 was the only thing that worked. The problem was that I had enabled ufw and by default ufw will drop Forward requests which is used by the bridged (default) networking in Xen.

If disabling ufw is not an option, the solution is to edit ‘/etc/default/ufw’ and change the value of DEFAULT_FORWARD_POLICY to ACCEPT.

The sed way:
sed -i -e's/DEFAULT_FORWARD_POLICY="DROP"/DEFAULT_FORWARD_POLICY="ACCEPT"/' /etc/default/ufw

Advertisement

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.