Difference between revisions of "Iptables -L"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
 +
Tables: <code>filter, nat, mangle, raw and security</code>.
  
 
  iptables -L
 
  iptables -L
Line 10: Line 12:
 
  target    prot opt source              destination
 
  target    prot opt source              destination
 
   
 
   
 +
iptables -t [[mangle]] -L
 +
iptables -t [[nat]] -L
  
 
  iptables -L -n
 
  iptables -L -n

Latest revision as of 14:08, 9 December 2020

Tables: filter, nat, mangle, raw and security.

iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

iptables -t mangle -L
iptables -t nat -L
iptables -L -n
iptables -L -n --line-numbers
iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination

Related terms[edit]


See also[edit]

Advertising: