Page MenuHomeVyOS Platform

Duplicated IPSec Tunnel
Closed, ResolvedPublicBUG

Description

I'm not sure if this is a reporting problem or what.

According to this output, I have 3 active IPSec tunnels:

$ show vpn ipsec status
IPSec Process Running PID: 5118

3 Active IPsec Tunnels

IPsec Interfaces :
        eth0    (xx.xx.xx.xx)

But there should only be two. A L2TP:

$ show vpn remote-access
Active remote access VPN sessions:

User            Proto Iface     Tunnel IP       TX byte RX byte  Time
----            ----- -----     ---------       ------- -------  ----
me            L2TP  l2tp0     10.34.42.1         1.4G   55.0M  01h11m56s

And a site-to-site to an Cisco ASA. Obviously this output is odd because it should be impossible to have two IPSec connections between the same peers.

$ show vpn ipsec sa
Connection                   State    Up       Bytes In/Out    Remote address    Remote ID    Proposal
---------------------------  -------  -------  --------------  ----------------  -----------  --------------
peer-209.xx.xx.11-tunnel-0  up       6 hours  None/None       209.xx.xx.11     N/A          None/None/None
peer-209.xx.xx.11-tunnel-0  up       6 hours  None/None       209.xx.xx.11      N/A          None/None/None

And there is only a single peer listed under vpn->ipsec->site-to-site.

I don't know if this is related, but I do run a task every 5m to bounce the connection when/if it goes down:

$ cat /config/scripts/vpn_monitor.script
 #!/bin/bash

 /bin/ping -c 1 -W 2 10.99.99.99 1>/dev/null 2>&1
 if [ $? -ne 0 ]; then
         echo "Failed"
         /bin/vbash -ic 'reset vpn ipsec-peer 209.xx.xx.11'
 fi

Details

Difficulty level
Unknown (require assessment)
Version
1.2.0-rc9
Why the issue appeared?
Will be filled on close

Event Timeline

syncer triaged this task as Normal priority.Dec 6 2018, 12:05 AM
syncer edited projects, added VyOS 1.2 Crux ( VyOS 1.2.0-rc11); removed VyOS 1.2 Crux.

Maybe the same as in T1119. T1119 is fixed in my tests since VyOS-1.2.0-rolling+201901061111. Can you test again with latest rolling?

@Line2 Thanks for the update.

Confirmed this is corrected in the latest rolling. Closing

kroy claimed this task.