Displaying 2 results from an estimated 2 matches for "if_main".
Did you mean:
f_main
2020 Jul 16
1
[Bug 1442] New: Definitions cannot be referenced in chain type configuration
....org
Reporter: phillc at gmail.com
I've looked through the documentation, and through previous bugs to attempt to
establish if this is a bug, not a feature, or just WAD but haven't been able to
find much info.
Having set interface definitions at the top of nftables.conf
define $if_main = ens33
The definition works fine in subsequent rule configuration, but does not work
in chain type definitions.
I am attempting to introduce configuration portability for an ingress hook
chain by doing this:
table netdev filter {
chain Main_Ingress {
type filter hook ingress device...
2020 Oct 27
0
[ANNOUNCE] nftables 0.9.7 release
...use variables in the log prefix string.
define foo= "state"
define bar = "match"
table x {
chain y {
ct state invalid log prefix "invalid $foo $bar:"
}
}
* Allow to use variables in chain and flowtable definitions, e.g.
define if_main = lo
table netdev x {
chain y {
type filter hook ingress device $if_main priority -500; policy accept;
}
}
* Allow to define negative values in variables:
define post = -10
define for = "filter - 100"
table inet global {
chain forward {...