Mikrotik RouterSite-to-Site PPTP VPN Server Configuration



Fig:Mikrotik Router Site to Site PPTP VPN Server Configuration





HQ Router Configuration:

[admin@HQRouter] > address add address= 180.140.100.2/30 interface=ether1
[admin@HQRouter] > address add address= 172.16.1.1/24 interface=ether2
[admin@HQRouter] > interface pptp-server server> set enabled=yes
[admin@HQ Router] > ppp profile add name=PPTP local-address=172.16.100.1
 remote-address=172.16.100.2

[admin@HQRouter] > ppp secret add name=branch profile=PPTP service=pptp password=123
local-address=172.16.100.1 remote-address=172.16.100.2 routes="10.1.1.0/24,172.16.100.2"
[admin@HQ Router] > ip route add dst-address=0.0.0.0 gateway=180.140.100.1
 

Remote Router Configuration:

[admin@REMOTERouter] > address add address= 103.31.178.2/30 interface=ether1
[admin@REMOTERouter] > address add address= 10.1.1.1/24 interface=ether2
[admin@REMOTERouter] > interface pptp-client add user=branch password=123 
connect-to=180.140.100.2 disabled=no
[admin@REMOTERouter] > ip route add dst-address=0.0.0.0 gateway=180.140.100.1
[admin@REMOTERouter] > ip route add dst-address=172.16.1.0/24 gateway=172.16.100.1