I've played a little with IKEv2. I'm able to connect to mikrotik router with IKEv2 (using 'digital signature' or 'eap radius').
Now I'm looking for some guides how can I filter access to specific VLANs from IKEv2 clients. I know that, I can add firewall rules like:
Code: Select all
#ALLOW VPN to VLAN10
add action=accept chain=forward ipsec-policy=in,ipsec out-interface=VLAN10 src-address=VPN_IP_POOL
#ALLOW VPN to VLAN20
add action=accept chain=forward ipsec-policy=in,ipsec out-interface=VLAN20 src-address=VPN_IP_POOL
I can create different identities under /IP/IPsec/Identities and modeconfs under /IP/IPsec/Mode Configs so each user get own IP and routes to specific vlans. But it isn't safe - client can manualy change ip or add route. Also firewall rules won't help - users still can change his ip/toutes
Code: Select all
#ALLOW user1 to VLAN10 (based on his IP)
add action=accept chain=forward out-interface=VLAN10 src-address=10.0.1.0/24
#ALLOW user2 to VLAN20 (based on his IP)
add action=accept chain=forward out-interface=VLAN20 src-address=10.0.2.0/24
Code: Select all
#ALLOW user1 to VLAN10 (based on interface binding)
add action=accept chain=forward in-interface=l2tp-user1 out-interface=VLAN10
#ALLOW user2 to VLAN20 (based on interface lists)
add action=accept chain=forward in-interface-list=VLAN20-vpn_users out-interface=VLAN20
I have never play with Dot1X, so I don't know if it is possible to use it over VPN. Probably not, while in server config you have to set an interface.
You may ask me, why I want to use IKEv2 not L2TP/ipsec
- possibility to push routes&dns over modeconf
- multiple connections from the same WAN IP (yes, I've seen workaround for it on this forum)
- better performance
- better for road warriors using 3g/lte as WAN access (roaming and reconnection)
Thanks for any help