]> git.ipfire.org Git - thirdparty/ipset.git/commit
netfilter: xt_set: Do not restrict --map-set to the mangle table
authorSerhey Popovych <serhe.popovych@gmail.com>
Fri, 29 Nov 2019 09:21:33 +0000 (11:21 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Mon, 9 Dec 2019 10:16:05 +0000 (11:16 +0100)
commit55b1b5093c6bb1c0330699cdfdd1f6a8254eead7
treef00e03b0cb1751ae461755c8468d0b01e2b00cdd
parenta065f8ed355f08131c39787b4c7a41543ff643b3
netfilter: xt_set: Do not restrict --map-set to the mangle table

While mangle table is primary place for packet modification setting
mark, traffic class priority or hardware NIC queue can be done in any
table with exception similar to using mark in policy-based routing
setups (configured with ip-rule(8)) should be done before routing
happens (i.e. in PREROUTING chain that usable in mangle or raw tables
only).

There is no such restriction in MARK target used to set packet mark and
CLASSIFY target used to set traffic class priority. Both are free to use
in any table. There is no known target that can modify hardware queue
for packet.

This helps in keeping filtering and packet modification rules together
in filter table.

Tested with rule in filter table with SET target using --map-prio and
HTB for scheduling packets at egress.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
kernel/net/netfilter/xt_set.c