From 0d96d9894a9b2538b6deaa4ac9f2cb77b1a90000 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Thu, 27 Jan 2011 18:01:39 -0600 Subject: Work on new IPsec operational mode script. Fixed inverted SPIs --- scripts/vyatta-op-vpn.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/vyatta-op-vpn.pl b/scripts/vyatta-op-vpn.pl index 4c35997..727b56a 100755 --- a/scripts/vyatta-op-vpn.pl +++ b/scripts/vyatta-op-vpn.pl @@ -113,10 +113,10 @@ sub get_tunnel_info { if (defined($spi)){ if ($line =~ /$spi:.*esp.(.*)\@.*\((.*bytes).*esp.(.*)\@.*\((.*bytes)/) { - $tunnel_hash{$connectid}->{_inspi} = $1; - $tunnel_hash{$connectid}->{_inbytes} = $2; - $tunnel_hash{$connectid}->{_outspi} = $3; - $tunnel_hash{$connectid}->{_outbytes} = $4; + $tunnel_hash{$connectid}->{_outspi} = $1; + $tunnel_hash{$connectid}->{_outbytes} = $2; + $tunnel_hash{$connectid}->{_inspi} = $3; + $tunnel_hash{$connectid}->{_inbytes} = $4; } if ($line =~ /$spi:.*?EVENT_SA_REPLACE in (.*?)s;/){ $tunnel_hash{$connectid}->{_expire} = $1; -- cgit v1.2.3