Page 1 of 1

Mikrotik to Mikrotik VPN - Dynamic IP

Posted: Sun Dec 10, 2017 1:23 pm
by rd228
Hi,

Ive had a search around the forums but cant seem to find a definitive answer on this

What I'm trying to achieve is a mikrotik to mikrotik vpn or site to site to be official.

This is for a home setup, id like to be able to connect 2 home networks each with their own mikrotiks. I already have a dial in L2TP VPN for my current home network using a dynamic IP address but what i want to achieve is a permanent connection between the 2 homes so that we can share services. I run quite an extensive home network...Hyper V virtual servers, internal websites and facilities such as home automation & file sharing. Id like to be able to also use this as a way of doing off site backups to each home.

Can someone explain the best way or a guide if there is one to achieving this but with the issue of having a dynamic IP address.....or if its even possible?

Re: Mikrotik to Mikrotik VPN - Dynamic IP

Posted: Sun Dec 10, 2017 2:50 pm
by JohnTRIVOLTA
Put addresses at both ends of the ppp link /examp. 10.100.0.1/30 and 10.100.0.2/30 /.Route home networks over this addresses / add static route in main routing table for each home network respectively/ and make an exception in filter section on firewall for accepting the traffic between them .

Re: Mikrotik to Mikrotik VPN - Dynamic IP

Posted: Sun Dec 10, 2017 8:39 pm
by rd228
Hi yeah thanks for pointing that bit out, thats the bit I already know how to do

What main crux of my question was how to do this with a dynamic public IP address at both ends.

Re: Mikrotik to Mikrotik VPN - Dynamic IP

Posted: Sun Dec 10, 2017 9:28 pm
by JohnTRIVOLTA
Hi yeah thanks for pointing that bit out, thats the bit I already know how to do

What main crux of my question was how to do this with a dynamic public IP address at both ends.
Choose the one of routers for vpn server and use cloud /ddns/ for establish the ppp connection !

Re: Mikrotik to Mikrotik VPN - Dynamic IP

Posted: Mon Jan 15, 2018 12:15 pm
by erlinden
Choose the one of routers for vpn server and use cloud /ddns/ for establish the ppp connection !
There is no way to accomplish a "true" peer to peer connection without the use of script?

Re: Mikrotik to Mikrotik VPN - Dynamic IP

Posted: Mon Jan 15, 2018 12:23 pm
by jamthejame
check this link....it should guide you through the process along with the script
https://blog.pessoft.com/2016/05/29/mik ... s-and-nat/

Re: Mikrotik to Mikrotik VPN - Dynamic IP

Posted: Mon Jan 15, 2018 1:19 pm
by coopertown

Re: Mikrotik to Mikrotik VPN - Dynamic IP

Posted: Tue Jan 16, 2018 9:26 pm
by Tdaddysimi
I just subscribe to a free dyndns service, like no-ip.com. I have a pc thats on already 24/7 on my network run their free client that updates the public every 5 minutes, and then I can connect my vpn clients (mainly my phone and travel router) to xxxxxxx.ddns.net and my vpn works flawlessly behind a dynamic address. No scripts needed.