Have RB2011 with 10 ports. Wanted to do the following:
LAN 1 = VPN 1 = WAN 6
LAN 2 = VPN 2 = WAN 6
LAN 3 = VPN 3 = WAN 6
Mikrotik is connected to to ISP router which provides public IP. Also, each end point for VPN 1-3 is different and each route is marked with Mangle rule. The issue i’m experience is this… When one tunnel connects the other are also trying but not transferring, then one will disconnect and the other one will come online and so on. It takes forever for one tunnel to come online. Any idea why that might be happening?
figured i would ask if its possible to begin with. Anyways, here is the configuration, unfortunately given the issues i just limited it to 2 to see if that would work, which does not:
You should not have that ip ipsec peer when you are using l2tp/ipsec for your VPN!
However, you do require routes for the remote subnets reachable via the VPN links.
When your remote subnets overlap and you require the 2 local networks to connect to them, you need to have
routes with a route-mark and a way to apply this route-mark to the traffic (either via ip firewall mangle rules or via ip route rules)
IPSEC peer was automatically creates when i set up L2TP client in ‘ppp’ and enabled IPSEC. As you see my routes are marked in MANGLE, both have different end point. Those VPNs are all clients and dont have control over Server nor its configuration as automatically connect to their server’s public ip etc. I see i missed the routes export in previous post, thus just added, these are marked routes:
I hope you see your mistake now that you show it so clearly…
But, you also have to be careful that you do not take away the default route for the outgoing VPN packets from the router.
So, the default route for VPN1 and VPN2 traffic can be those marked routes, but there still has to be an unmarked default
route pointing to your ISP gateway and you have to make sure those VPN packets themselves do not get marked.
that would be my mistake for not exporting full table. However, your suggestion about ISP gateway and default + marked routes, all there… and so is the connection issue.