Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Conversation

@icecrime
Copy link

@icecrime icecrime commented Feb 9, 2015

We're throwing a new attempt at removing the userland proxy from Docker. The blocking issue we discovered last time was that hairpin NAT was not available on some systems (see moby/moby#9134).

This PR reintroduces @phemmer work from #62 and adds the ability to enable Hairpin NAT on a per-network basis using the Network.HairpinNAT flag (disabled by default).

This is to support being able to DNAT/MASQ traffic from a container back into itself (moby/moby#4442)

Docker-DCO-1.1-Signed-off-by: Patrick Hemmer <[email protected]> (github: phemmer)
@mrunalp
Copy link
Contributor

mrunalp commented Feb 10, 2015

LGTM

@dqminh
Copy link
Contributor

dqminh commented Feb 10, 2015

LGTM

network/types.go Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually that thing not called HairpinNAT. It is rather HairpinMode or just Hairpin

@icecrime
Copy link
Author

Renamed bool HairpinNAT to Hairpin.

Offer the ability to enable hairpin NAT on a per network basis, while
keeping it disable by default as it is unsupported by older kernel.

Signed-off-by: Arnaud Porterie <[email protected]>
@icecrime
Copy link
Author

Renamed bool Hairpin to HairpinMode. 🎉

@mrunalp
Copy link
Contributor

mrunalp commented Feb 10, 2015

Justification for name -- http://lwn.net/Articles/347344/

mrunalp pushed a commit that referenced this pull request Feb 10, 2015
@mrunalp mrunalp merged commit 21ed476 into docker-archive:master Feb 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants