Skip to content

Instantly share code, notes, and snippets.

@wido
Created March 28, 2017 14:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wido/65fd60266381383ca8e884439868e470 to your computer and use it in GitHub Desktop.
Save wido/65fd60266381383ca8e884439868e470 to your computer and use it in GitHub Desktop.
IPv6 NAT for Docker containers
#!/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