PPTP + DHCP

We have DHCP winbox server in our lan and MT as VPN access server. Is there way to use DHCP leases for VPN users?

Possibly with some trickery, but probably not… DHCP and PPP weren’t really made to work with each other. Generally speaking, a DHCP server is going to want to see the MAC address of each client that wants an address, and this is not something that the PPTP server is immediately prepared to supply to a DHCP server. Even it the DHCP server were to be able to allocate an IP address for each of your VPN clients, the PTPP server is not set up to relay those addresses back to the PPTP client. I know Microsoft has a workaround for this if a Windows RAS machine is acting as the PPTP server, but I think it just uses a trick that pulls a certain number of IP addresses from the DHCP server ahead of time and creates a local pool out of them, with the PPTP server handing those address out only when it needs to. You might be able to do the same thing manually, by configuring a local pool of addresses on the MT PPTP server that are outside of the range of addresses used by the DHCP server. For example, you could configure your standard DHCP server to hand out the addresses X.X.X.1/24 - X.X.X.127/24, and set up a local pool on the MT to hand out X.X.X.128/24 - X.X.X.254/24(not counting the fact that you would need at least one address reserved for the gateway/DHCP server) for the PPTP clients…

See this FAQ I quickly found for you to find out more info…
http://www.dhcp-handbook.com/dhcp_faq.html#cdsra

Hitek

you can use /ip pool' to issue addresses to pptp clients -- just add a pool and profile with remote-address=<pool> and then in /interface pptp-server server’ use that profile

yes thats one option, but users that connect to vpn dont get default gateway that way.

Default gateway is always the opposite of the tunnel. Since this is the routerboard, it can route the traffic further. So pptp clients do not need default gateway like dhcp clients.