Skip to contentSkip to conversation

New match ipt_nexthop

DISCUSSION Samuel Jean 2 participants 3 messages Sep 15, 2004 – Sep 16, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

Attached is a pom-ng style patch that makes possible to match the next-hop ipv4 of a packet.

Should work with both 2.4 and 2.6 but still in testing.

Notice that, for an unknown reason, the 2.6 Kconfig.ladd is appended to the end of Kconfig. I'll be quite happy if someone could fix it and tell me what was wrong. (I'm sorry for the inconvenient.)

Bad and good comments are welcome!

Thanks,

Samuel Jean
CookingLinux.org

#1 lore raw
Quoted 3 lines · Samuel Jean

Hi,

Attached is a pom-ng style patch that makes possible to match the next-hop ipv4 of a packet.

Please attach the plain files next time.

Quoted 6 lines

Should work with both 2.4 and 2.6 but still in testing.

Notice that, for an unknown reason, the 2.6 Kconfig.ladd is appended to the end of Kconfig. I'll be quite happy if someone could fix it and tell me what was wrong. (I'm sorry for the inconvenient.)

Bad and good comments are welcome!

We already have the realm match in the kernel, which matches the routing realms. Is there anything you can't do with the realm match but with your new match ?

Regards
Patrick

#2 lore raw
Quoted 9 lines · Patrick McHardy
Quoted 3 lines

Bad and good comments are welcome!

We already have the realm match in the kernel, which matches the routing realms. Is there anything you can't do with the realm match but with your new match ?

No, there isn't.
The realm match seems to do much more than what this new match can. However, nexthop match doesn't require those realms routing keys and is quite simple to set up.

router A : 192.168.0.1
router B : 192.168.0.2

iptables -A FORWARD -m nexthop --nexthop-ip 192.168.0.1 -j LOG --log-prefix "Processed by A: " iptables -A FORWARD -m nexthop --nexthop-ip 192.168.0.2 -j LOG --log-prefix "Processed by B: "

I think it's not a question of functionnality, but simplicity.

Conclusion, I find this new match useless being given that realm match can all do that.

Quoted 5 lines

Regards
Patrick

Cheers,

Samuel Jean
CookingLinux.org