Skip to content

Instantly share code, notes, and snippets.

@thomasbiddle
Created September 1, 2016 04:27
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 thomasbiddle/a2575cb0c44135dc40e007b1734c6b1c to your computer and use it in GitHub Desktop.
Save thomasbiddle/a2575cb0c44135dc40e007b1734c6b1c to your computer and use it in GitHub Desktop.
root@iZ94ks74g92Z:~# iptables -L -v
Chain INPUT (policy ACCEPT 2026K packets, 161M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 2017K packets, 147M bytes)
pkts bytes target prot opt in out source destination
root@iZ94ks74g92Z:~# iptables --table nat -L -v
Chain PREROUTING (policy ACCEPT 1815 packets, 99865 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 1815 packets, 99865 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 7224 packets, 508K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 7182 packets, 506K bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- any any 10.170.118.8/29 anywhere
42 2520 MASQUERADE all -- any any 10.0.0.0/8 anywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment