Dynamic Policy based Routing

I need to create a routing rule to route traffic across a VPN tunnel, the problem is that the IP of the remote side of the connection is not static (each VPN tunnel gets it’s own remote IP, it’s running Microsoft RRAS on server 2003) and so while I can create all the routing rules I want right now, if the tunnell drops for any reason, there is a chance that the remote IP will be different when it comes back up, and then all the routes will be broken.

this router will be handeling the internet connection as well as a VPN between sites.

If I could alternatly set the pptp client to add the default route with a routing mark, that would solve my problem as well.

I asked for the route-mark option a while back because of another need - but I know where you are comin from. Possibly you can write a netwatch script (or other scheduled) that pulls the default gateway or remote endpoint and populates it. Its not instant because its a script triggering it, but better than nothing.

Sam

Hopefully we can get this added into the next build??? I was talking with Butch Evans earlier, the only way to accomplish this is a complex netwatch script, or a schedular script that runs once per minute. far from ideal, espicialy when something so simple as the ability to set a routing mark PPP (and DHCP???) connection default gateways would turn this very complex process to something very easy.

I could sell 20 routerboards by Monday if I had this feature. it’s just too hard and complex to make MT worth the effort for this type of implementation.

John/Normis/Sergejs PLEASE add this option into a very soon to be released version. it will allow me sell MikroTik products for more implementations, which means more $ for your bottom line :slight_smile:

If you are using the routing-test package, there is a built-in chain dynamic-in which allows you to apply routing marks on dynamic routes.

Eugene

Now that’s AWESOME! I will test this later today, how cool.

Sam

Works like a charm.

Can option for ‘in-interface’ be added to the routing-filters selection? This way you can perform based on which interface, ie 2 cable modems, or dhcp-clients, or pptp-client, etc. As it is I can’t mark 1 dhcp-client with a different route-mark than another one.

Sam

We will think about it. BTW, what happened to those 2 bgp peers? Seems to be down.

Eugene

Eugene,

I posted about those 2 in the other routing-test thread, basically they were overheating and need to be moved into my ofifce. I should have them back in a day or so.

Sam

Ive installed routing-test-2.9.30 and cant see to get the dynamic-in chain to work on my l2tp client - can you post and example please?