summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDmitriyEshenko <snooppy@mail.ua>2019-10-31 07:45:34 +0000
committerDaniil Baturin <daniil@baturin.org>2020-01-20 12:53:26 +0100
commit3a192885d754ca71051cb3420e17de570c1aa88c (patch)
tree90747bb41c449060336d0465355c7064963969ef /scripts
parenta061c3e1fa28a7f07a80fbd6b04978080095be79 (diff)
downloadvyatta-cfg-vpn-3a192885d754ca71051cb3420e17de570c1aa88c.tar.gz
vyatta-cfg-vpn-3a192885d754ca71051cb3420e17de570c1aa88c.zip
T1780 Adding IPSec IKE close-action
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vpn-config.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index d68e419..369e568 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -811,6 +811,14 @@ if ($vcVPN->exists('ipsec')) {
}
#
+ # Check for closeaction
+ #
+ my $close_act = $vcVPN->returnValue("ipsec ike-group $ike_group close-action");
+ if (defined($close_act)) {
+ $genout .= "\tcloseaction=$close_act\n";
+ }
+
+ #
# Allow the user for force UDP encapsulation for the ESP
# payload.
#