diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-06-24 13:06:04 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-06-24 13:06:04 +0200 |
commit | 1e57b56f271d55bee4e1118f4f4f9aad27b813ce (patch) | |
tree | 52644fe91c46af6dbad1edf2664e2f359ed6c992 /scripts/vyatta-vti-config.pl | |
parent | a2574ad42f708aa662bc9fc7bbbf0badf8349bd1 (diff) | |
parent | 90daa5e2cf02ffd3fd5936b4f372f1e85ab62ef6 (diff) | |
download | vyatta-cfg-vpn-lithium.tar.gz vyatta-cfg-vpn-lithium.zip |
Merge branch 'current' into lithiumlithium
Conflicts:
scripts/vpn-config.pl
Diffstat (limited to 'scripts/vyatta-vti-config.pl')
-rwxr-xr-x | scripts/vyatta-vti-config.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-vti-config.pl b/scripts/vyatta-vti-config.pl index fbfad64..81abf97 100755 --- a/scripts/vyatta-vti-config.pl +++ b/scripts/vyatta-vti-config.pl @@ -25,7 +25,7 @@ # # For each VTI tunnel (vpn ipsec site-to-site peer ip-address sti); find the vti tunnel, local address, mark. # Find the corresponding tunnel (interfaces vti vtiXXX), tunnel address, disable, mtu -# if not configured: ip tunnel add vtiXXX mode esp local $local remote $remote i_key $mark +# if not configured: ip tunnel add vtiXXX mode esp local $local remote $remote ikey $mark okey $mark # if (mtu): configure mtu # if (tunnel-addres): configur ip link vtiXXX address # if (!disable): enable the interface. @@ -207,7 +207,7 @@ foreach my $peer (@peers) { # By default we delete the tunnel... my $genmark = $mark; $gencmds .= "sudo /sbin/ip link delete $tunName type vti &> /dev/null\n"; - $gencmds .= "sudo /sbin/ip link add $tunName type vti local $lip remote $peer okey $genmark\n"; + $gencmds .= "sudo /sbin/ip link add $tunName type vti local $lip remote $peer okey $genmark ikey $genmark\n"; foreach my $tunIP (@tunIPs) { $gencmds .= "sudo /sbin/ip addr add $tunIP dev $tunName\n"; } |