GitHub PushEvent at 2014-11-10 17:17:03
Repository: docker
Actor: recursive-madman
Payload: {"shas":[["95a400e6e1a3b5da68431e64f9902a3fac218360","004f9f0e1609c4c1464ff6adb5c629d3ec4d0d70@gmail.com","Support hairpin NAT\n\nThis re-applies commit b39d02b with additional iptables rules to solve the issue with containers routing back into themselves.\n\nThe previous issue with this attempt was that the DNAT rule would send traffic back into the container it came from. When this happens you have 2 issues.\n1) reverse path filtering. The container is going to see the traffic coming in from the outside and it's going to have a source address of itself. So reverse path filtering will kick in and drop the packet.\n2) direct return mismatch. Assuming you turned reverse path filtering off, when the packet comes back in, it's goign to have a source address of itself, thus when the reply traffic is sent, it's going to have a source address of itself. But the original packet was sent to the host IP address, so the traffic will be dropped because it's coming from an address which the original traffic was not sent to (and likely with an incorrect port as well).\n\nThe solution to this is to masquerade the traffic when it gets routed back into the origin container. However for this to work you need to enable hairpin mode on the bridge port, otherwise the kernel will just drop the traffic.\nThe hairpin mode set is part of libcontainer, while the MASQ change is part of docker.\n\nThis reverts commit 63c303eecdbaf4dc7967fd51b82cd447c778cecc.\n\nDocker-DCO-1.1-Signed-off-by: Patrick Hemmer <patrick.hemmer@gmail.com> (github: phemmer)","Patrick Hemmer",true],["0f21d9aea75ee48001fee1ce764514f943581254","55258e89a8b41a46066b3a9514b15a78c1a88d17@docker.com","Merge pull request #6810 from phemmer/4442-hairpin-nat\n\nSupport hairpin NAT","Arnaud Porterie",true],["d3e54fd8c70637cd1c299a31c53bde4a5b3004ad","31eac6dd0dc83aebea75ce15599ee04fc46235b7@gmx.de","Don't loose precision when parsing image size on 32 bit machines.\nPresumably fixes #8979.\n\nSigned-off-by: Recursive Madman <recursive.madman@gmx.de>","Recursive Madman",true]],"size":3,"ref":"refs/heads/master","head":"d3e54fd8c70637cd1c299a31c53bde4a5b3004ad"}