Page 1 of 1

VPN PPTP

Posted: Thu Dec 04, 2014 3:32 am
by DWC
Hi guys, I'm new here.
I'm realy not good with mikrotik gears. I only used ubiquiti gears and some of linksys and cisco systems. Mikrotik is a totaly different animal as i can see. I'm trying to setup a vpn in an office to link 2 networks. I think that a part of my setup is okay since I can reach the VPN through my laptop or my desktop pc remotly. I can surf to the gateway, my WAN add is different and evcerything looks good. But the goal of this VPN is to share files and database of a software. While I'm connected to the VPN, i try to ping the server but nothing happen. I try to scan the network, nothing! It looks like i'm alone :( .

Can someone help me with this setup?

Re: VPN PPTP

Posted: Thu Dec 04, 2014 10:53 am
by error216216
If I understood correctly you want the devices from another location to be in the same broadcast as the local ones, I have a working config that does exactly that, the only thing that it will only work between mikrotiks, if you try to connect with a PC to the profile that has bridge it will give an error because it will not be reciving ip's via pptp protocol.

Here's a working config:

Server:
/interface pptp-server server
set enabled=yes mrru=1600
/ppp profile
add bridge=bridge1 change-tcp-mss=yes name=VPN_Clients only-one=yes
/ppp secret
add name=magazin1 password=1234 profile=VPN_Clients service=pptp
Client:
#First create a bridge interface
/interface bridge
add mtu=1500 name=VPN_Bridge
#Add a port to that bridge
/interface bridge port
add bridge=VPN_Bridge interface=ether5
/interface pptp-client
add add-default-route=no allow=mschap1,mschap2 connect-to=(public ip of server) dial-on-demand=no disabled=no keepalive-timeout=disabled ma
    max-mtu=1450 mrru=1600 name=pptp-out1 password=1234 profile=VPN_Bridge_Profile user=magazin1
Now on client mikrotik port 5 will be a direct link to server's bridge1, ip addresses, dhcp, everything will be recived from server mikrotik on that port.

Re: VPN PPTP

Posted: Thu Dec 04, 2014 2:55 pm
by DWC
Hi Thnak you for your reply. Yeah You understood corectly, I want to bridge 2 differents network into 1 using VPN.

I only have 1 routerboard installed to the first building. The other one is using vpn client from windows7 service. Is it doable ?

Thank you so much for your help.
If I understood correctly you want the devices from another location to be in the same broadcast as the local ones, I have a working config that does exactly that, the only thing that it will only work between mikrotiks, if you try to connect with a PC to the profile that has bridge it will give an error because it will not be reciving ip's via pptp protocol.

Here's a working config:

Server:
/interface pptp-server server
set enabled=yes mrru=1600
/ppp profile
add bridge=bridge1 change-tcp-mss=yes name=VPN_Clients only-one=yes
/ppp secret
add name=magazin1 password=1234 profile=VPN_Clients service=pptp
Client:
#First create a bridge interface
/interface bridge
add mtu=1500 name=VPN_Bridge
#Add a port to that bridge
/interface bridge port
add bridge=VPN_Bridge interface=ether5
/interface pptp-client
add add-default-route=no allow=mschap1,mschap2 connect-to=(public ip of server) dial-on-demand=no disabled=no keepalive-timeout=disabled ma
    max-mtu=1450 mrru=1600 name=pptp-out1 password=1234 profile=VPN_Bridge_Profile user=magazin1
Now on client mikrotik port 5 will be a direct link to server's bridge1, ip addresses, dhcp, everything will be recived from server mikrotik on that port.

Re: VPN PPTP

Posted: Fri Dec 05, 2014 3:27 am
by DWC
Ok so I want 2 mikrotik? Bridged together?