Files
cheatsheet-tldr/tldr/linux/nft-monitor
2025-11-27 00:20:32 +00:00

26 lines
502 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# nft monitor
> Show real-time changes happening inside the Linux firewall `nftables`.
> More information: <https://manned.org/nft#head21>.
- Monitor all nftables events:
`sudo nft monitor`
- Monitor only rule updates (add, delete, replace):
`sudo nft monitor rules`
- Monitor set and element updates:
`sudo nft monitor sets`
- Monitor events and print JSON output:
`sudo nft {{[-j|--json]}} monitor`