shinobu/router: Add tracing infrastructure
This commit is contained in:
parent
1c24743911
commit
caac620ea6
|
@ -137,6 +137,25 @@ in
|
||||||
oifname $PHYSICAL_WAN counter drop
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue