Add connection rate limiting.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Jul 2013 21:38:38 +0000 (23:38 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Jul 2013 21:38:38 +0000 (23:38 +0200)
Tinc now strictly limits incoming connections from the same host to 1 per
second. For incoming connections from multiple hosts short bursts of incoming
connections are allowed (by default 100), but on average also only 1 connection
per second is allowed.

When an incoming connection exceeds the limit, tinc will keep the connection in
a tarpit; the connection will be kept open but it is ignored completely. Only
one connection is in a tarpit at a time to limit the number of useless open
connections.


No differences found