shinobu/router: Add tracing infrastructure

nazuna
Simon Bruder 2023-09-21 12:43:32 +02:00
parent 1c24743911
commit caac620ea6
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 19 additions and 0 deletions

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
}
}
'';
};
};