Recently I am learning iptables, I know there are 5 independent tables, two of them are filter and nat tables. And I sometimes will look at netatat -r or route table, I know ip command can modify this routing table. I am a bit confused about these 2 kinds of tables:
- routing table
- nat and filter tables
They all can do something on packet traffic and looks they can do similar things, can someone tell me what are the differences? Thanks in advance.
iptablesandiphave much the same relationship thatcatandcatepillardo - they start with the same first two letters.iptablesis for managing the firewall.ipis for managing network interfaces, addresses, and routesnftablesas a replacement toiptables,ip6tables,arptables, etc.iptablesfunctionality is optional.