Skip to content

Instantly share code, notes, and snippets.

@phlegx
Created June 6, 2016 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phlegx/de09ddd55091da486a021021823fc8e9 to your computer and use it in GitHub Desktop.
Save phlegx/de09ddd55091da486a021021823fc8e9 to your computer and use it in GitHub Desktop.
Chain PREROUTING (policy ACCEPT 328K packets, 22M bytes)
pkts bytes target prot opt in out source destination
61479 4282K DOCKER all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
Chain INPUT (policy ACCEPT 33114 packets, 2374K bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 8963 packets, 611K bytes)
pkts bytes target prot opt in out source destination
32 1944 DOCKER all -- * * 0.0.0.0/0 !127.0.0.0/8 ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT 84183 packets, 5150K bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- * !docker0 172.17.0.0/16 0.0.0.0/0
307K 21M MASQUERADE all -- * !br-ba5a97dce6d8 172.18.0.0/16 0.0.0.0/0
0 0 MASQUERADE tcp -- * * 172.18.0.6 172.18.0.6 tcp dpt:443
0 0 MASQUERADE tcp -- * * 172.18.0.6 172.18.0.6 tcp dpt:80
0 0 MASQUERADE tcp -- * * 172.18.0.2 172.18.0.2 tcp dpt:8080
Chain DOCKER (2 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all -- docker0 * 0.0.0.0/0 0.0.0.0/0
31457 2191K RETURN all -- br-ba5a97dce6d8 * 0.0.0.0/0 0.0.0.0/0
14838 931K DNAT tcp -- !br-ba5a97dce6d8 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 to:172.18.0.6:443
283 14804 DNAT tcp -- !br-ba5a97dce6d8 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 to:172.18.0.6:80
515 26244 DNAT tcp -- !br-ba5a97dce6d8 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080 to:172.18.0.2:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment