nft add rule inet filter input ct state established,related accept

Category: Security & Hardening

nft add rule inet filter input ct state established,related accept

Accept traffic belonging to existing connections

Lets replies and related packets, like FTP data channels, through for connections your system already opened. The ct keyword reads connection tracking state, a concept iptables expresses as conntrack --ctstate. Place this rule early so response traffic is not dropped by later rules.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.