Hi All,
I have a RHEL 2.4 kernel server, running as a router.
While trying to investigate why I am having certain routing problems, I came across references that mention that both the "route" command, as well as iptables manupalate kernel routing tables.
Do they both act on the same routing tables ?
If I add static routes with
# route add .......
how will it affect forwards in iptables ?
Thanks Shahed.
Do they both act on the same routing tables ?
There is for all purposes just one routing table which the kernel maintains and you manipulate that using the route command (generally). There is also the ip command available. But both act on the same routing table.
iptables is best thought as a filtering and packet mangling utility which happens before/after routing and as such can affect the routing decisions overall, but no, it does not manipulate the kernel's routing table.
-- Rohan http://rohan.almeida.in