From: Subramanian <sub1779@yahoo.com>
To: netfilter@lists.netfilter.org
Subject: difference between syn and NEW
Date: Thu, 22 Sep 2005 05:39:49 -0700 (PDT) [thread overview]
Message-ID: <20050922123949.42309.qmail@web30803.mail.mud.yahoo.com> (raw)
hi,
I read in the iptables manual [in the Appendix B.
Common problems and questions ]that the NEW state
match may accept any packet marked as NEW whether it
has syn bit set or not.
it says "If you use state NEW, packets with the SYN
bit unset will get through your firewall"
so in short it means anything marked NEW is passed
thru irrespective of whether syn is set or not OR
maybe any other bit is set
My question is if i am having a single firewall with
deny all policy and wanting to accept only new
connections for ip's or services like ssh,smtp etc
what shld be my rule -
a) iptables with --syn OR
b) iptables with --syn + NEW OR ONLY
c) iptables with NEW
what is the recommended rule for a restrictive
firewall?
I guess option a) is the best one. But it shld not
lead to a lot of connection drops as NEW allows timed
out connections if the connection is not closed.
Please suggest the best practice.
Secondly if i want to limit ssh connections for syn
flood protection what is the recomended limit and
limit-burst values.
thirdly if i want to limit ping for ping flood
protection what is the recomended limit and
limit-burst values.
Please suggest the best practice.
Thanks & Regards,
sub
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
next reply other threads:[~2005-09-22 12:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 12:39 Subramanian [this message]
2005-09-22 13:39 ` (no subject) Bernd Lippert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050922123949.42309.qmail@web30803.mail.mud.yahoo.com \
--to=sub1779@yahoo.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.