HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

nft monitor — Show real-time changes happening inside the Linux firewall `nftables`. More information: <https://ma

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandshownft monitorhappeningclirealtimechanges
linux

Problem

How to use the nft monitor command: Show real-time changes happening inside the Linux firewall nftables. More information: <https://manned.org/nft#head21>.

Solution

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

Code Snippets

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

Context

tldr-pages: linux/nft monitor

Revisions (0)

No revisions yet.