Difference between revisions of "Iptables -L"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(7 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 | ||
− | Chain INPUT (policy ACCEPT) | + | Chain INPUT (policy ACCEPT) |
− | target prot opt source destination | + | target prot opt source destination |
− | + | ||
− | Chain FORWARD (policy ACCEPT) | + | Chain FORWARD (policy ACCEPT) |
− | target prot opt source destination | + | 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 | iptables -t [[nat]] -L | ||
Line 24: | Line 31: | ||
Chain POSTROUTING (policy ACCEPT) | Chain POSTROUTING (policy ACCEPT) | ||
target prot opt source destination | target prot opt source destination | ||
+ | |||
+ | == Related terms == | ||
+ | * <code>[[fail2ban]]</code> | ||
+ | |||
== See also == | == See also == | ||
* {{iptables}} | * {{iptables}} | ||
+ | |||
+ | |||
+ | [[Category:Firewall]] |
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: