Hi fellow Mikrotik users..
I’m fairly new to Mikrotik and looking to use a bunch of Mikrotik CCR devices to replace aging Cisco 7200 routers currently providing LNS termination for customer L2TP sessions.
I’ve managed to get basic LNS functionality working however we’re stuck on working out how to simulate the functionality provided by Cisco’s multiple vpdn-groups and virtual-templates.
Consider the following LNS configuration..
/ppp profile add name=virtual-template1 local-address=172.16.96.222 remote-address=pool1
/ppp profile add name=virtual-template2 local-address=172.16.96.226 remote-address=pool1
/ppp l2tp-secret add address=172.16.96.221/32 secret=xxx
/ppp l2tp-secret add address=172.16.96.225/32 secret=xxx
/interface l2tp-server server
set caller-id-type=ip-address default-profile=virtual-template1 enabled=yesThe last line of config sets the default-profile for the L2TP server to ‘virtual-template1’ but how can we select that an alternate profile for another group of sessions when using RADIUS authentication? This other group of sessions might be using a different authentication realm or originate from a different group of LAC addresses.
There are various profile/virtual-template items that we may wish to update however specifically we have a requirement to use a different local-address for some service types.
With local users defined within the Mikrotik config we see it’s possible to specify the profile used for the session however there doesn’t appear to be any session specific RADIUS attributes that influence the default-profile or the l2tp-server local-address.
! local user
/ppp secret
add disabled=no name=user@realm.com password=test profile=virtual-template2With Cisco we have the ability to use ‘terminate-from hostname’ to establish different service profiles where each vpdn-group can optionally specify a different virtual-template.
vpdn-group DSL
accept-dialin
protocol l2tp
virtual-template 1
terminate-from hostname DSL-LAC
vpdn-group Wireless
accept-dialin
protocol l2tp
virtual-template 2
terminate-from hostname Wireless-LACHow can we achieve this functionality?
If there is no official support for profile selection using configuration or RADIUS, would it be possible to use scripting to achieve the same?
I see an On-Up script is available on the default-profile but could this change the local-address? Seems likely it would occur too late.
Thanks in advance.
Regards
Darren