lxc-net should not masquarade intra-container traffic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Unassigned |
Bug Description
As pointed out in the lxc mailing list, the iptables rule used by lxc-net causes traffic between containers to be NAT'ed. Fix this by adding '! -d ${LXC_NETWORK}' to the iptables -A rule.
=======
SRU Justification:
1. Impact: traffic between containers on the same host is NATed
2. Development fix: update iptables rule to not NAT traffic between containers
3. Stable fix: same as development fix
4. Test case: create and run two containers on the same host. Do a 'tcpdump -ni eth0' from container 1 while container 2 is pinging container 1. With the fix, the source address should be from the container's address, not from 10.0.3.1 (the bridge address).
5. Regression potential: none.
=======
Changed in lxc (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in lxc (Ubuntu Quantal): | |
status: | Triaged → Fix Committed |
description: | updated |
Changed in lxc (Ubuntu Precise): | |
status: | New → Fix Committed |
importance: | Undecided → High |
This bug was fixed in the package lxc - 0.8.0~rc1-4ubuntu33
--------------- rc1-4ubuntu33) quantal; urgency=low
lxc (0.8.0~
[ Serge Hallyn ] wait-initialize -timeout: initialize timeout to -1 so lxc-wait patches/ compilecleanups /* - fix compile time warnings. net.upstart: tell iptables not to masquerate packets between getitem- utsname- segv: fix seg fault when doing get_item(utsname) conf-after- create: add ability to free a lxc_conf. Use that hooks-to- manpage: document lxc.hook in the lxc.conf manpage. destroy- rm-symlink: If rootfs is a symbolic link to a directory, premount- hook.patch: add a premount hook to support encrypted
* 0206-lxc-
will, by default, wait for the container to enter the requested state.
* debian/
* lxc.lxc-
containers. (LP: #1045947)
* 0208-fix-
on newly created container.
* 0209-reload-
after calling Container->Create() to completely reload the newly created
config.
* 0211-add-
* 0212-lxc-
remove it. (LP: #1046117)
* 0213-add-
filesystems. (LP: #1043052)
[ Scott Moser ] cloud-fixes. patch: cleanups to lxc-ubuntu-cloud.in
* 0207-ubuntu-
fix for quantal images that do not have user 'ubuntu' present
(LP: #1045955)
[ Rex Tsai ] debian- templates: Fix lxc-shutdown/ lxc-restart in Debian
* 0210-fix-
containers and fix lxc.utsname for lenny containers.
(LP: #1046684, LP: #1046696)
[ Stéphane Graber ] net.upstart: Make the iptables call more consistent (LP: #1045947)
* lxc.lxc-
-- Serge Hallyn <email address hidden> Thu, 30 Aug 2012 11:32:06 -0500