* [iproute2] Rightmost part IPv6 address masking?
@ 2022-08-04 22:09 Roman Mamedov
0 siblings, 0 replies; only message in thread
From: Roman Mamedov @ 2022-08-04 22:09 UTC (permalink / raw)
To: netdev
Hello,
ip6tables supports the little-known format to mask the rightmost part of an
IPv6 address:
# ip6tables -A FORWARD -d ::a:b:c:d/::ffff:ffff:ffff:ffff -j ACCEPT
would match any IP which ends with the specified sequence, i.e.:
*:*:*:*:a:b:c:d. This is really useful in cases where the ISP provides a
dynamic IPv6 prefix, or there are prefixes from multiple ISPs in a LAN.
However in iproute2 there is no such support for "ip rule":
# ip -6 rule add from ::a:b:c:d/::ffff:ffff:ffff:ffff lookup main
Error: inet6 prefix is expected rather than "::a:b:c:d/::ffff:ffff:ffff:ffff".
I suppose the iproute2 developers might be reading this, so could you please
consider adding support for masks like these? Aside from that, would you
reckon there's a limitation which would prevent this kind of masks from
working on the kernels-side?
Or maybe anyone can suggest the proper way to specify this for "ip rule" which
is supported currently?
Thanks
--
With respect,
Roman
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-04 22:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-04 22:09 [iproute2] Rightmost part IPv6 address masking? Roman Mamedov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).