Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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