I'm trying to see a list of all the rules in IPtables in a Debian 7 server.when I try:iptables -L -nI only get one rule (which I entered 5 minutes ago).I have many others, for port 80, mysql and others which all work, but I can't see them anywhere.Any idea how could that be done?Thanks/* edit */I'm adding some input I get from the different commandsiptables -t nat -L -nChain PREROUTING (policy ACCEPT)target     prot opt source               destinationChain INPUT (policy ACCEPT)target     prot opt source               destinationChain OUTPUT (policy ACCEPT)target     prot opt source               destinationChain POSTROUTING (policy ACCEPT)target     prot opt source               destinationWhen I tryiptables -L -v -n --line-nChain INPUT (policy ACCEPT 43535 packets, 58M bytes)num   pkts bytes target     prot opt in     out     source               destination1      126 56529 ACCEPT     tcp  --  eth0   *       0.0.0.0/0            0.0.0.0/0            tcp spt:443 state ESTABLISHEDChain FORWARD (policy ACCEPT 0 packets, 0 bytes)num   pkts bytes target     prot opt in     out     source               destinationChain OUTPUT (policy ACCEPT 30151 packets, 7365K bytes)num   pkts bytes target     prot opt in     out     source               destinationiptables-save# Generated by iptables-save v1.4.14 on Thu Oct 23 08:58:32 2014*raw:PREROUTING ACCEPT [17972:25607074]:OUTPUT ACCEPT [12416:1953400]COMMIT# Completed on Thu Oct 23 08:58:32 2014# Generated by iptables-save v1.4.14 on Thu Oct 23 08:58:32 2014*mangle:PREROUTING ACCEPT [19071:27028289]:INPUT ACCEPT [19071:27028289]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [13114:2110189]:POSTROUTING ACCEPT [13114:2110189]COMMIT# Completed on Thu Oct 23 08:58:32 2014# Generated by iptables-save v1.4.14 on Thu Oct 23 08:58:32 2014*security:INPUT ACCEPT [19514:27565428]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [13405:2178341]COMMIT# Completed on Thu Oct 23 08:58:32 2014# Generated by iptables-save v1.4.14 on Thu Oct 23 08:58:32 2014*nat:PREROUTING ACCEPT [141:11461]:INPUT ACCEPT [141:11461]:OUTPUT ACCEPT [11:1030]:POSTROUTING ACCEPT [11:1030]COMMIT# Completed on Thu Oct 23 08:58:32 2014# Generated by iptables-save v1.4.14 on Thu Oct 23 08:58:32 2014*filter:INPUT ACCEPT [43596:58181078]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [30216:7394285]-A INPUT -i eth0 -p tcp -m tcp --sport 443 -m state --state ESTABLISHED -j ACCEP                                                                                        TCOMMIT# Completed on Thu Oct 23 08:58:32 2014
How to get all IPtables rules
debian;iptables
Netfilter encourages to use iptables-save command since it will provide you a detailed view of your built-in chains and those you've defined yourself. If you want to get a human readable view you can use  iptables -L -v -n --line-n 