shinobu/router: Add tracing infrastructure

This commit is contained in:
Simon Bruder 2023-09-21 12:43:32 +02:00
parent 1c24743911
commit caac620ea6
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -137,6 +137,25 @@ in
oifname $PHYSICAL_WAN counter drop
}
}
# Tracing infrastructure, can be used for debugging (nft monitor trace)
table inet trace {
chain prerouting {
type filter hook prerouting priority raw - 1
jump common
}
chain output {
type filter hook output priority raw - 1
jump common
}
chain common {
# Add tracing rule here
# … meta nftrace set 1
# DO NOT COMMIT ANY TRACING RULES
}
}
'';
};
};