summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJason Hendry <jhendry@mintel.com>2014-12-01 20:43:42 +0000
committerJason Hendry <jhendry@mintel.com>2014-12-01 20:43:42 +0000
commitae063db6eb21bb52ae5e995dfa4bef195de599be (patch)
tree76f692dbafb7d9e94065b68dd10133467d215b73 /scripts
parentdd17f6db97ad7e7f58e371e4b6f3ca5eceb4f3a0 (diff)
downloadvyatta-cfg-vpn-ae063db6eb21bb52ae5e995dfa4bef195de599be.tar.gz
vyatta-cfg-vpn-ae063db6eb21bb52ae5e995dfa4bef195de599be.zip
Exposing ikev2 reauth option in CLI, defaulting to 'no'
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vpn-config.pl19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index e1c3573..cd4166b 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -813,6 +813,25 @@ if ($vcVPN->exists('ipsec')) {
}
#
+ # Get ikev2-reauth configuration
+ #
+ if ((defined($key_exchange) && ($key_exchange eq 'ikev2')) {
+ my $ikev2_tunnel_reauth = $vcVPN->returnValue("ipsec site-to-site peer $peer ikev2-reauth");
+
+ if ((defined($ikev2_tunnel_reauth)) && ($ikev2_tunnel_reauth ne 'inherit')) {
+ $genout .= "\treauth=$ikev2_tunnel_reauth\n";
+ } else {
+ my $ikev2_group_reauth = $vcVPN->returnValue("ipsec ike-group $ike_group ikev2-reauth");
+ if (defined($ikev2_group_reauth)) {
+ $genout .= "\treauth=$ikev2_group_reauth\n";
+ } else {
+ $genout .= "\treauth=no\n";
+ }
+ }
+
+ }
+
+ #
# Allow the user to disable MOBIKE for IKEv2 connections
#
my $mob_ike = $vcVPN->returnValue("ipsec ike-group $ike_group mobike");