nft Verified for current stable LTS

Nft Command: Add Rule Accept Tcp Ports

Use for add rule accept tcp ports with Nft. Exact CLI syntax to add rule accept tcp ports using Nft.

When to use this: Use for add rule accept tcp ports with Nft.

Command Syntax

sudo nft add rule <inet> <filter> <input> <tcp> {{dport \{ telnet, ssh, http, https \} accept}}

Live Command Builder

Final Command

sudo nft add rule <inet> <filter> <input> <tcp> {{dport \{ telnet, ssh, http, https \} accept}}

Command Breakdown

sudo is the base executable for this command.

FAQ

Purpose: Exact syntax to add rule accept tcp ports using Nft.

Test path: Replace placeholders and run destructive commands in a disposable workspace first.

Flag behavior: Tool version, platform, and shell can change behavior.

Improve This Command

Suggest a correction, safer default, or version-specific note for this entry.

Related Operations

Back to Nft directory