From: Andrew Beverley <andy@andybev.com>
To: me <todh@todhackett.com>
Cc: netfilter@vger.kernel.org
Subject: Re: connlimit troubles and questions
Date: Wed, 19 Sep 2012 20:53:33 +0100 [thread overview]
Message-ID: <1348084413.4663.61.camel@andrew-desktop> (raw)
In-Reply-To: <20120919185526.M10579@todhackett.com>
On Wed, 2012-09-19 at 12:16 -0700, me wrote:
> I haven't been able to find out how long those first tcp connections stay around. Are
> they timing out, hence the second connection, or is the udp stuff what is causing me
> grief?
You can use the conntrack userspace application to view the connection
tracking table. This shows the timeout of each connection, which should
help you. UDP connections are stateless so will time out fairly quickly.
> If they are timing out, how can I keep limiting connections?
Try changing /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout
> I have a range of udp ports that are given out, can I use those somehow?
The multipart match should do the trick. See man iptables.
Andy
next prev parent reply other threads:[~2012-09-19 19:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-19 19:16 connlimit troubles and questions me
2012-09-19 19:53 ` Andrew Beverley [this message]
2012-09-19 20:00 ` Andrew Beverley
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=1348084413.4663.61.camel@andrew-desktop \
--to=andy@andybev.com \
--cc=netfilter@vger.kernel.org \
--cc=todh@todhackett.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).