From 3a957aaef3ae512b217dd475a846a0ea35aae49c Mon Sep 17 00:00:00 2001 From: Davide Guerri Date: Thu, 15 Sep 2011 23:42:22 +0200 Subject: New feauture: Add --stale-routes-check This patch adds a stale-routes-check option that takes 2 parameters: a ageing time (in seconds) and a check interval (in seconds). The latter defaults to the former if it's not present. Internally, a new "check" is added in multi_process_per_second_timers_dowork(). This check deletes stale routes and it is inspired to the function multi_reap_range(). We're running a very large connectivity infrastructure based on openVPN (more than 4000 different clients connected per day per server), so we can throughly check this patch (or, of course, any variant of it). Signed-off-by: Davide Guerri Reviewed-by: David Sommerseth Acked-by: Adriaan de Jong Acked-by: Gert Doering Signed-off-by: David Sommerseth --- openvpn.8 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'openvpn.8') diff --git a/openvpn.8 b/openvpn.8 index 55a9b80..c585da4 100644 --- a/openvpn.8 +++ b/openvpn.8 @@ -3118,6 +3118,25 @@ directive affects OpenVPN's internal routing table, not the kernel routing table. .\"********************************************************* .TP +.B \-\-stale-routes-check n [t] +Remove routes haven't had activity for +.B n +seconds (i.e. the ageing time). + +This check is ran every +.B t +seconds (i.e. check interval). + +If +.B t +is not present it defaults to +.B n + +This option helps to keep the dynamic routing table small. +See also +.B \-\-max-routes-per-client +.\"********************************************************* +.TP .B \-\-connect-freq n sec Allow a maximum of .B n -- cgit