Ale jo, dává ...
I'm happy to announce ipset 6.22, which, besides bugfixes and corrections,
includes the new set type hash and the skbinfo extension from Anton
Danilov. The skbinfo extension makes possible to store fw mark, tc class
and/or hardware queue parameters together with the set elements and then
attach them to the matchig packets by the SET target. Example
ipset create mark_values hash:net skbinfo
ipset add mark_values 8.8.8.8/32 skbmark 0x1/0xffff
...
iptables -t mangle -A OUTPUT -p tcp -o iface -j SET --map-set mark_values dst --map-mark
To je ještě lepší, než to moje! :-) Místo targetu CLASSIFY v mangle se udržuje jen jeden ipset. Krása. Ještě tam dodělat stejnou možnost pro NAT ...