Created
March 28, 2017 14:20
-
-
Save wido/65fd60266381383ca8e884439868e470 to your computer and use it in GitHub Desktop.
IPv6 NAT for Docker containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# ONLY USE IPV6 NAT FOR TESTING PURPOSES | |
# | |
# IPV6 IN PRODUCTION SHOULD RUN WITHOUT NAT! | |
# | |
ip6tables -t nat -A POSTROUTING -s fd00::/64 -j MASQUERADE | |
dockerd --ipv6 --fixed-cidr-v6=fd00::/64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment