iptables and INVALID packet filtering.
Daniel Curtis <[email protected]> Thu, 4 Apr 2013 15:35:18 +0200
| Newsgroups | gmane.linux.debian.devel.firewall |
|---|---|
| Message-ID | <CAASvXNseOJy8__QFKFir=nUmCGZDR47vFFYkeToCO3=PYp7sCw@mail.gmail.com> |
Hi I would only ask about iptables (1.4.14-3.1) rule, which is responsible for filtering INVALID packets. If I decide to use this rule; >> iptables -A INPUT -m conntrack --ctstate INVALID -j DROP That's an example. By using this rule, iptables will also check tcp and udp protocols or should I use something like; >> iptables -A INPUT -p tcp (...) >> iptables -A INPUT -p udp (...) Which solution/rule is correct and it is better to implement? Best regards.