Shut IPSec tunnel



On my VyOS router (virtual appliance) I am terminating multiple IPSec tunnels. What would be the correct procedure to shut one of the tunnels for whatever reason? I know I can disable the vti but this just disconnects the BGP session and the tunnel stays up because:

set vpn ipsec ipsec-interfaces interface 'eth0'

Is there any way that can shut an individual tunnel?



In my lab I was able to shutdown an individual IPSEC tunnel with the following command:

set vpn ipsec site-to-site peer tunnel 1 disable

The other tunnels remained up.


Hi Chris, thanks for the feedback. I tried your suggestion but unfortunately it fails to commit with the below:

VPN configuration error: Both Vti and tunnel(s) configured for peer x.x.x.x