To display the effect of rule set changes, use
nft list ruleset
Flush rules
nft flush ruleset
To Open a port range (49152-65534)
nft add rule filter INPUT tcp dport 49152-65534 accept
To save rule set to make it permanent
nft -s list ruleset | tee /etc/sysconfig/nftables.conf
Leave a Reply