base-stack/sbin/firewall-list-ruleset.sh
2023-08-20 11:14:31 -07:00

10 lines
218 B
Bash
Executable File

#!/bin/bash
# firewalld is using nftables
nft list table inet firewalld
# you can also export the current ruleset in json format:
# nft -j list ruleset
# and to parse the json export do:
# nft -j list ruleset | jq .