From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rob Sterenborg" Subject: State NEW and --syn flag Date: Tue, 20 Jul 2004 11:15:39 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: 'iptables' Hi all, When writing a rule, if one doesn't specify a state, state NEW is assumed, right ? If the first packet of a connection arrives, it has state NEW and subsequent packets are ESTABLISHED or RELATED. The first packet also has the --syn flag set so new packets could also be identified by --syn. If checking for state NEW, is there any reason to also check if the --syn flag is set or is it enough to just rely on state NEW ? Gr, Rob