How can i set up an ipsec tunnel route

I have two vyos and two servers, how can I set a route to my servers so that they communicate through the tunnel VPN ? Is this command (set vpn ipsec site-to-site peer vyos1 authentication remote-id xxxxx and the same for local-id) to mention that my servers can go through the VPN? Because I worked before with srx router and I used to mention a static route and define the virtual vpn interface that will be used as a route, I don’t know if its the same or not for Vyos

If you want use routing with IPsec you must use the VTI interface.
Configuration example: https://docs.vyos.io/en/latest/configuration/vpn/site2site_ipsec.html#ikev2

1 Like

And for sure you will find configuration examples and guidelines in this forum. IPSec tunnels configuration is frequently asked and discussed here. Use “Search”

1 Like