7

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:

  1. routing table
  2. 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.

chengdol
  • 155
  • 1
  • 6
  • 6
    `iptables` and `ip` have much the same relationship that `cat` and `catepillar` do - they start with the same first two letters. `iptables` is for managing the firewall. `ip` is for managing network interfaces, addresses, and routes – roaima Sep 09 '20 at 07:28
  • Consider also `nftables` as a replacement to `iptables`, `ip6tables`, `arptables`, etc. – ctrl-alt-delor Sep 09 '20 at 09:28
  • 3
    https://superuser.com/questions/419659/iptables-vs-route – Badr Elmers Dec 30 '20 at 07:39

0 Answers0