Open a port with nftables
nftables open port | nft allow tcp port | nft insert rule accept | nftables | nft | firewall | portCaution: This command changes the system. Understand what it does before you run it.
nft insert rule inet filter input tcp dport 443 acceptInserts the rule at the top of the input chain in the inet filter table, which is defined in the Debian template /etc/nftables.conf. Using insert instead of add places the rule before any drop rules. The rule applies immediately, but only until a reboot or until nftables.service is reloaded.
Note: The rule only becomes permanent with an entry in /etc/nftables.conf. If the table does not exist, nft reports No such file or directory.
Open question before approval: Prüfen, ob auf Plesk-Servern mit Firewall-Erweiterung die Tabelle inet filter existiert oder die Plesk-Regeln nur in ip filter liegen.
Also searched as
- nftables open port
- nft allow tcp port
- nft insert rule accept