Skip to content

Instantly share code, notes, and snippets.

@bketelsen
Created September 8, 2014 23:02
Show Gist options
  • Save bketelsen/c8d2197d8bb393a1db54 to your computer and use it in GitHub Desktop.
Save bketelsen/c8d2197d8bb393a1db54 to your computer and use it in GitHub Desktop.
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.100.97.0/24 !10.100.97.0/24
Chain DOCKER (2 references)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp dpt:6379 to:10.100.9.4:6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment