mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 16:32:59 +02:00
IPsec: Close on-demand tunnels after 15 min of inactivity
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -413,6 +413,12 @@ sub writeipsecfiles {
|
||||
print CONF "\trightsourceip=$lvpnsettings{'RW_NET'}\n";
|
||||
} else {
|
||||
print CONF "\tauto=$start_action\n";
|
||||
|
||||
# If in on-demand mode, we terminate the tunnel
|
||||
# after 15 min of no traffic
|
||||
if ($start_action eq 'route') {
|
||||
print CONF "\tinactivity=900\n";
|
||||
}
|
||||
}
|
||||
|
||||
# Fragmentation
|
||||
|
||||
Reference in New Issue
Block a user