Two lan in one ipsec

Hi,

I have Mikrotik RB750 and I have two address netowork (192.168.xxx.xxx and 172.10.xxx.xxx).

It’s possible to configure both address network in one ipsec and public IP?

For exemple:
Mikrotik: Public 69.xxx.xxx.xxx, Private 192.168.40.xxx
Matriz: Public 177.xxx.xxx.xx, Private 192.168.0.xxx and 172.16.10.xxx

I need that network 192.168.40.xxx have access to the 192.168.0.xxx and 172.16.10.xxx.

Thanks!

No idea what is Matriz, but yes, you can have two or more IPsec policies using the same peer provided that these policies do not overlap.
So at “Mikrotik” side, one policy would say src-address=192.168.40.0/24 and dst-address=192.168.0.24, the other one would say src-address=192.168.40.0/24 and dst-address=172.16.10.0/24 and both would use sa-src-address=69.x.x.x and sa-dst-address=177.x.x.x. At “Matriz” side, src and dst would be swapped.