iptables

General support questions
Post Reply
bencp
Posts: 30
Joined: 2018/09/20 18:30:00

iptables

Post by bencp » 2018/11/19 19:54:09

Hello all
can someone explain me what is the difference in iptables states new/established ?

and what the iptables -m state mean?

thanks !!!

joebeasley3rd
Posts: 4
Joined: 2014/01/10 20:17:50

Re: iptables

Post by joebeasley3rd » 2018/11/23 04:35:09

Found answer here.

-m state. Match state.

NEW
NEW refers to incoming packets that are the first packet for an incoming connection that was not initiated by the host system. An example is the SYN packet in a TCP connection. However the packet may as well not be a SYN packet, and still be considered NEW.

ESTABLISHED
An ESTABLISHED connection is a connection the firewall knows about and it's tracking. The ESTABLISHED state has seen traffic in both directions and will then continuously match those packets. The only requirement to get into an ESTABLISHED state is that one host sends a packet, and that it later on gets a reply from the other host. ICMP reply messages can also be considered as ESTABLISHED, if we created a packet that in turn generated the reply ICMP message.

Post Reply