From 63c303eecdbaf4dc7967fd51b82cd447c778cecc Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 9 Apr 2014 11:55:08 +0000 Subject: [PATCH] Revert "Support hairpin NAT without going through docker server" This reverts commit b39d02b611f1cc0af283f417b73bf0d36f26277a. Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- pkg/iptables/iptables.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/iptables/iptables.go b/pkg/iptables/iptables.go index 1f25952bd9..4cdd67ef7c 100644 --- a/pkg/iptables/iptables.go +++ b/pkg/iptables/iptables.go @@ -66,6 +66,7 @@ func (c *Chain) Forward(action Action, ip net.IP, port int, proto, dest_addr str "-p", proto, "-d", daddr, "--dport", strconv.Itoa(port), + "!", "-i", c.Bridge, "-j", "DNAT", "--to-destination", net.JoinHostPort(dest_addr, strconv.Itoa(dest_port))); err != nil { return err