Skip to content

Instantly share code, notes, and snippets.

@wkharold
Created March 19, 2015 15:05
Show Gist options
  • Save wkharold/bd2fc9065e2b9b7dc433 to your computer and use it in GitHub Desktop.
Save wkharold/bd2fc9065e2b9b7dc433 to your computer and use it in GitHub Desktop.
kubernetes master iptables output
core@master ~ $ sudo iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DOCKER all -- anywhere anywhere ADDRTYPE match dst-type LOCAL
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DOCKER all -- anywhere !loopback/8 ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 10.244.68.0/24 anywhere
Chain DOCKER (2 references)
target prot opt source destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment