How add routes to switch site-to-site tunnel from PPTP to IKEv2
Posted: Mon Feb 14, 2022 3:14 am
I have a site to site tunnel between A and B, running over a PPTP tunnel. Assume A has 3 networks:
Next, I have a second tunnel up between A and B using IKEv2. I want to move the routes from the PPTP tunnel to the IKEv2 tunnel. I assume that I just need to add some routes, but there is no gateway offered (in WinBox) for my IKEv2 tunnel when I try to add a route! How do I route (eg: x.0.3.0/24) traffic over the IKE tunnel?
Based on some posts I tried marking traffic on A destined for B with "IKETUNNEL" (in IP FIREWALL MANGLE), then I thought I could add that mark on the Mode Config. But, on A (the responder) there is no connection mark option. I see an "ADDRESS" field available on the responder side, but no where in the documentation can I find out what that means. I on the initiator side I think I could do connection marking. But it feel weird to use different ways to route traffic based on initiator (marking) or responder (??).
Based on some other posts I thought that perhaps my IP Sec policy template for the IKE tunnel connection should determine subnets to match and send over the tunnel. However, I cannot create a single CIDR address that matches A or B's subnets. As well, create a second template policy seems to be ignored when the tunnel is brought up, and switching it to non-template causes saving the policy to fail with error. I have Generate Policy set to 'port strict' on A, for the B connection. In case that matters
BTW, I work at A and don't want to drive to B, so I'm hoping there is a way to do this incrementally (disabling the PPTP tunnel temporarily on A) so I can test before destroying the PPTP tunnel/routes
and B has 3 networks1.0.1.0/24
1.0.2.0/24
1.0.4.0/24
I see routes on A and B sending traffic for the other over the 'AB Tunnel' gateway. On A the routes to B are flagged DAS, while on B the routes to A are flagged AS. I think it means A's routes to B are 'static' routes added when that PPP user profile connected (which added the routes 'dynamically'), while B's routes were added in IP ROUTES (since B is the initiator of the PPTP tunnel).1.0.4.0/24
1.0.5.0/24
1.0.3.0/24
Next, I have a second tunnel up between A and B using IKEv2. I want to move the routes from the PPTP tunnel to the IKEv2 tunnel. I assume that I just need to add some routes, but there is no gateway offered (in WinBox) for my IKEv2 tunnel when I try to add a route! How do I route (eg: x.0.3.0/24) traffic over the IKE tunnel?
Based on some posts I tried marking traffic on A destined for B with "IKETUNNEL" (in IP FIREWALL MANGLE), then I thought I could add that mark on the Mode Config. But, on A (the responder) there is no connection mark option. I see an "ADDRESS" field available on the responder side, but no where in the documentation can I find out what that means. I on the initiator side I think I could do connection marking. But it feel weird to use different ways to route traffic based on initiator (marking) or responder (??).
Based on some other posts I thought that perhaps my IP Sec policy template for the IKE tunnel connection should determine subnets to match and send over the tunnel. However, I cannot create a single CIDR address that matches A or B's subnets. As well, create a second template policy seems to be ignored when the tunnel is brought up, and switching it to non-template causes saving the policy to fail with error. I have Generate Policy set to 'port strict' on A, for the B connection. In case that matters
BTW, I work at A and don't want to drive to B, so I'm hoping there is a way to do this incrementally (disabling the PPTP tunnel temporarily on A) so I can test before destroying the PPTP tunnel/routes