The KMyFirewall Handbook
Stateful packet filtering
Stateful packet filtering lets a rule match the connection state of a packet.
iptables ‑A INPUT ‑‑match state ‑‑state RELATED,ESTABLISHED ‑j ACCEPT
The state option is a comma separated list of the connection states to match:
- INVALID means the packet is associated with no known connection.
- ESTABLISHED means the packet is associated with a connection that has seen packets in both directions.
- NEW means the packet has started a new connection, or is associated with a connection that has not seen packets in both directions.
- RELATED means the packet is starting a new connection but is associated with an existing connection, such as an FTP data transfer or an ICMP error.
Continue with Type of service.