[lxc-users] LXD 2.0.0.rc2 -- IP Tables -- Ubuntu 15.10 -- not responding

Kevin LaTona lists at studiosola.com
Fri Mar 11 02:53:51 UTC 2016


I jus tried installing 15.10 on a 3 different test servers with LXD 2.0.0.rc2.

The ip tables rules I had been using with 14.04 would not work.

Here is an example:

iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 8080 -j DNAT --to-destination 10.0.3.250:8080
iptables -A FORWARD -p tcp -d 10.0.3.250 --dport 8080 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A OUTPUT -p tcp -o lo --dport 8080 -j DNAT --to-destination 10.0.3.250:8080

In the past I have used these iptable rules to allow outside of the local lan access to a container when needed.


Curious is anyone else running into this issue with 15.10?

If so, what did you do to allow outside public access to a container?


Since I jumped from 14.04 + LXD 0.9 to 1510 2.0.0.rc2 in my testing and it broke.

I have no idea if there is new or better way that has been introduced since 0.9 when needing direct public access to a container while using the default lxcbr0 bridge + 10.0.3.x  DHCP setup.



I ended up rolling back to 15.04 for now and it’s all back to working as it was in 14.04.


Thanks for any thoughts or insights?

-Kevin


More information about the lxc-users mailing list