PPTP Server Configuration for dynamic IP windows clients

I am trying to setup a PPTP server on our office router that is a RB532 running 2.9.35. The router is currently routing between a WAN IP of x.x.159.7/28 on ether1 and a private IP of 192.168.20.1/24 on ether2. It is configured as Masq & DHCP server for 192.168.20.0/24 on ether2. All the present configuration works great. The problems begin when I try to follow the example in the mikrotik Wiki and configure the PPTP server. I enter the commands below. Afterword, I am able to establish a PPTP connection from a laptop on the internet to the router, but the laptop does not get an IP address assigned to the PPTP connection. Also I notice that it causes my existing DHCP server configuration for ether2 to become invalid. I would really appreciate some help to find what I am doing wrong. Thanks!

Commands entered:
/ interface bridge
add name=“lan” arp=proxy-arp

/ interface bridge port
add interface=ether1 bridge=lan

/ ip dns
allow-remote-requests=yes

/ ip firewall service-port
set gre disabled=no
set pptp disabled=no

/ ip pool
add name=“pptp” ranges=192.168.20.151-192.168.20.199

/ ppp profile
add name=“pptp-in” local-address=192.168.20.1 remote-address=pptp use-encryption=required only-one=yes change-tcp-mss=yes dns-server=192.168.20.1

/ interface pptp-server server
set enabled=yes max-mtu=1460 max-mru=1460 authentication=chap,mschap1,mschap2 default-profile=pptp-in

/ ppp secret
add name=“user-1” service=pptp password=“******” profile=pptp-in (I substitute my user and password in this command)

Hi!

I think you should use your user name to create the pptp interface. You have to say that this interface is for this user.

In PPP:

ppp secret> add name=“user-1” service=pptp password=“******” profile=pptp-in local-address=10.1.2.1 remote-address=10.1.2.2. Sure you have IP with this. If you create routes in your RB532 to access your 10.1.2.2 you can access all your LAN without problems.


Martín

One more thing you should not have ether1 in the bridge!

Remove ether1 from the bridge and add ether2 (Remove the IP address from ether2). Add the routers LAN IP address to the bridge.

In the PPP Profile command, specify the additional options:
local-address=LAN address of router
bridge=lan.

Regards

Andrew

Thanks for your help Martin! I have changed the configuration so that ether2 (the LAN) is part of the bridge and not ether1. Now I AM able to establish a PPTP connection from a notebook and I am able to access my server resources on the office LAN. The only problem left is that my DHCP server configuration for the office LAN (ether2) is listed as invalid, even though is worked fine for months before adding the PPTP server configuration. Any ideas how I get the routerboard to once again work as DHCP server for my Office LAN while still keeping the PPTP server working?

I sorry I don’t understand some of your instructions. I am trying to configure the PPTP server for roaming employees that will be connecting with a windows client, so the remote address is dynamic and will change. How to I assign a remote address when it is always changing?

Thanks for catching my mistake! I have changed the configuration so that ether2 (the LAN) is part of the bridge and not ether1. Now I AM able to establish a PPTP connection from a notebook and I am able to access my server resources on the office LAN.

hi! you can put the dhcp in the bridge not in ether2.

Martín.

hello, i have a problem similar with my pptp-server, i put all command like lant but my client other routerboard rb-333 can´t to connect the server.
the log´s server say sometimes “link estable…” and appear “R” Runing for a moment but…disconeccted over an over again.
I don´t know to do, for conecction since LAN everything is ok, with my laptop i can connect and the server assing me ip…
what is the problem? the router-adsl open port: tcp 1723, tcp 1701,udp 500 to eth3.
from WAN don´t works!!!
i hope your help because i am 12 continuos hours with this.

thanks.

Hi!

I’m sure you are using RC8 or similar of routerOS v3.0.

This versions have problems with PPTP. I have this problem and updating ro RC11+ it was fixed.

Regards,
Martín

Gracias Martin, efectivamente ese era el problema, he actualizado a 3.3 y to ok.
Saludos.
Thank Martin, this is the problem, i update to 3.3 and fixed.Now all working ok.
Regards.

; ) enjoy yourself!