Packets can be in various states when using stateful packet inspection.
- New: The packet is not part of any known flow or socket and the TCP flags have the SYN bit on.
- Established: The packet matches a flow or socket tracked by
CONNTRACK
and has any TCP flags. After the initial TCP handshake is completed the SYN bit must be off for a packet to be in state established.
- Related: The packet does not match any known flow or socket, but the packet is expected because there is an existing socket that predicates it (examples of this are data on port 20 when there is an existing FTP session on port 21, or UDP data for an existing SIP connection on TCP port 5060). This requires an associated ALG.
- Invalid: If none of the previous states apply the packet is in state
INVALID
. This could be caused by various types of stealth network probes, or it could mean that you're running out of CONNTRACK
entries (which you should also see stated in your logs). Or it may simply be entirely benign.
In your case, the packet that you cite shows that the TCP flags ACK
and RST
, and that the source port is 80
. What that means is that the web server at 31.13.72.7
(which happens to be Facebook) sent a reset packet to you. It's entirely impossible to say why without seeing the packets that came before it (if any). But most likely it is sending you a reset for the same reason your computer thinks it's invalid.