#!/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 .