LINUX: IPTABLES Command To List NAT Routing Rules With Line Numbers
Below command can be used.
sudo iptables -L -t nat -vn --line-number
Below is sample output.
Chain PREROUTING (policy ACCEPT 1701 packets, 95970 bytes)
num pkts bytes target prot opt in out source destination
1 4208 239K KUBE-SERVICES all -- * * 0.0.0.0/0 0.0.0.0/0 /* kubernetes service portals */
2 4516 258K PREROUTING_direct all -- * * 0.0.0.0/0 0.0.0.0/0
3 4516 258K PREROUTING_ZONES_SOURCE all -- * * 0.0.0.0/0 0.0.0.0/0
4 4516 258K PREROUTING_ZONES all -- * * 0.0.0.0/0 0.0.0.0/0
No comments:
Post a Comment