you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 1 year ago (1 child)

So something like:

nft -f newrules.nft; sleep 2m; nft destroy table ip newrules
# newrules.nft
table ip newrules {
  # …
}

As long as you run this in tmux, your new firewall rules will be dropped if you don’t cancel this in 2 minutes.

  • source
  • parent
  • hideshow 2 child comments