I’ve got Mikrotik 2.9 router. I’ve configured PPTP and added user account. Everything seemed to be OK – user can login to VPN from Internet and have access to Mikrotik’s local network. But he get’s he’s IP as a default route on he’s local PC.
How to disable default route for him and make him to use this VPN connection only for 192.168.0.0/24 networks. I’ve tried to fill “Routes” property for user account but it does not seemed to work.
Ok, That part of my problem is resolved. Big thanx to you =)
Now the second part. I’ve got OSPF setup on that mikrotik and i do not want client addresses assigned to them by pptp to expose on routes list (i’ve got router entry for 192.168.108.0/24 already, i do not want it to add all that 192.168.108.54, 108.55, etc.) is that achievable?
Ok, thank you people, now everything works as it should. But the story continues: now I need to distinguish traffic from VPN and mark it in mangle section. The problem is that DHCP server and PPTP uses same address pool (that’s how it supposed to be, 'cause IP addresses amount are limited here).
as i see in your configuration examples, then you are using addresses from private address list, then you can use other subnets like 10.0.0.0/8 or 172.16.0.0/16 networks for your pptp.Of course, you can set up limitation directly in /ppp profile and that way ensure, that all that connect to ppp using that profile will use that bandwidth limitation.
The reason why i need to EXACTLY distinguish PPTP traffic from any other it’s because we have some unmanaged pc’s in our network (like laptops or personally administrated desktops) and I need to prevent them from accessing the Internet by taking one of the NAT’ed IPs.
Also i can not use 10.0.0.0/8 and 172.16.0.0/12 networks, 'cause local address space in our network are stricted and allocated by another instance, so i have only 192.168.108.0/24 and 192.168.158.0/24 networks available. First one is used for static addresses second one is for DHCP and PPTP.