Skip to contentSkip to conversation

ipset-based routing

DISCUSSION Dash Four 2 participants 4 messages Apr 27, 2013 – Apr 28, 2013

lore
Share & tools
lore

Dash Four

author
#0 lore raw

Has something like this been attempted before?

I am about to start some work towards integrating ipsets in iproute and I am wondering whether something like this has been attempted or even done before so that I don't reinvent the wheel again? Thanks a lot.

#1 lore raw

Oops, ignore my previous email. It seems that a patch exists for ip route add .. for matching against ipsets.

https://lkml.org/lkml/2012/12/3/93

Regards

Quoted 9 lines · Dash Four

Has something like this been attempted before?

I am about to start some work towards integrating ipsets in iproute and I am wondering whether something like this has been attempted or even done before so that I don't reinvent the wheel again? Thanks a lot.
--
To unsubscribe from this list: send the line "unsubscribe lartc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw
In reply to Dash Four
Quoted 7 lines · Remy Mudingay

Hi Dash,

This has already been integrated with iproute2. TC (traffic control) can now match IPsets through the ematch classifier.
There are a few examples around including documentation provided in the iproute2 source package.
TC support was added in Kernel versions 3.7.

I am aware of all that since I was involved in testing this feature before it became main stream. My question was about using ipsets in routing, not traffic shaping.

author
#3 lore raw
In reply to Dash Four
Quoted 5 lines · Remy Mudingay

Oops, ignore my previous email. It seems that a patch exists for ip route add .. for matching against ipsets.

https://lkml.org/lkml/2012/12/3/93

That seems quite an old patch (kernel 2.6.27) and is based on ipset 4.5 which is archaic, but thanks for the link anyway.