PDA

View Full Version : [ubuntu] UFW interfering with my LXC containers



cryptochrome242
January 19th, 2013, 06:26 PM
Hi,

as soon as I enable the UFW firewall with one simple rule (allow tcp/22), my LXC containers can no longer aqquire IP addresses via DHCP (through the lxc-bridge). Any hints?

Thanks

terrypearson
September 26th, 2013, 08:45 PM
Just a guess,

sudo nano /etc/default/ufw
----
# Change:
# DEFAULT_FORWARD_POLICY="DROP"
# to
DEFAULT_FORWARD_POLICY="ACCEPT"

Then restart ufw

I am basing this off http://docs.docker.io/en/latest/installation/ubuntulinux/#ubuntu-raring which says that the forward policy is not setup correctly by default for lxc.