Community discussions

MikroTik App
 
basyir
just joined
Topic Author
Posts: 5
Joined: Thu Jul 28, 2022 4:37 pm
Contact:

VPN - PPTP Cannot Connect Remotely

Thu Sep 22, 2022 12:40 pm

Hi there,

Newb here. I'm trying to setup PPTP VPN in a lab environment to enable remote access to my network.
Upon setting up, tested local connection - VPN works.
Connecting from another network seems to fail for unknown reasons.

Pardon my absolute lack of knowledge on this.

Connecting remotely via Windows 10 yields this:
2022-09-22 (2).png
Exported config:
/ip pool
add name=dhcp_pool1 ranges=10.0.10.50-10.0.10.254
add name=PPTP_pool ranges=192.168.2.10-192.168.2.100

/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=bridge name=dhcp1
/ppp profile
add local-address=10.0.10.1 name=PPTP remote-address=PPTP_pool

interface bridge port
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge comment=defconf interface=ether2

/interface l2tp-server server
set default-profile=PPTP ipsec-secret=####### use-ipsec=yes
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=unifi list=WAN
/interface pptp-server server
set enabled=yes
/ip address
add address=10.0.10.1/24 comment=defconf interface=bridge network=10.0.10.0

/ppp secret
add name=username password=####### profile=PPTP service=pptp

Appreciate any kind assistance. Regards,

Basyir
You do not have the required permissions to view the files attached to this post.
 
User avatar
own3r1138
Long time Member
Long time Member
Posts: 681
Joined: Sun Feb 14, 2021 12:33 am
Location: Pleiades
Contact:

Re: VPN - PPTP Cannot Connect Remotely

Thu Sep 22, 2022 1:34 pm

Enable the LOG on your server and also check if the firewall helper service is on. some of your configs look wrong to me I changed them to what I have done.
However, You should consider changing the protocol to something else, the PPTP protocol was discontinued.
system logging
add disabled=no topics=pptp,!packet
ip firewall service-port set pptp disabled=no
ip pool add name=PPTP_pool ranges=192.168.2.10-192.168.2.100
ppp profile add local-address=192.168.2.1 name=PPTP remote-address=PPTP_pool dns=192.168.2.1
interface pptp-server server set enabled=yes
ip address add address=192.168.2.0/24 interface=bridge network=192.168.2.0

Who is online

Users browsing this forum: LTS12 and 38 guests