0

I have 2 Mikrotik routers:

Home(static WAN IP):
    LAN - 192.168.30.1/24
    VPN IP - 192.168.146.1
Office(Cloud):
    LAN - 192.168.20.1/24
    VPN IP - 192.168.146.2

Configured L2TP\IPSec server on my home router with default-encryption profile and connected to it from office router.

/ppp secret add local-address=192.168.146.1 name=office password=qwerty profile=default-encryption remote-address=192.168.146.2 service=l2tp

Routers were connected successfully and can ping each other, now i have 2 questions:
1)Is this ok that client always send 1 times of 1 bytes message to server through 4500 port?
2)How can allow access to office network from home pc?
For now i just configured two routes:
Home router:

/ip route add distance=1 dst-address=192.168.20.1/24 gateway=192.168.146.2 pref-src=192.168.30.1

Office router:

/ip route add distance=1 dst-address=192.168.30.1/24 gateway=192.168.146.1 pref-src=192.168.20.1

And this doesn't work. Also i have another local area in office router - 192.168.46.1/24 Is there any way that i can also access this addresses from my home pc?

1 Answers1

0

Have you try to add route for both network using interface as gateway?

Add at home

/ip route add dst-address=192.168.20.0/24 gateway=l2tp-...

Add at office

/ip route add dst-address=192.168.30.0/24 gateway=<l2tp-...>
jeanlou1370
  • 372
  • 3
  • 6