dual pppoe with ipsec

Hi everybody,

I have an issue but i’m a noobs so if anyone can help me , i’m apreciate.

I have a routerboard rb2011uas from office 1

Office 1
two connection adsl pppoe
1st pppoe → wan1(ether1)
2nd pppoe → wan2(ether2)
lan network → 192.168.1.0/24 (ether5)

Office 2
1st pppoe → wan1 ether1
lan ->> 192.168.20.0 ether2

Office 3
1st pppoe → wan1 ether1
lan ->> 192.168.50.0 ether2

How to connect Ipsec :
office2 to office1 from 1st pppoe
and
office3 to office1 from 2nd pppoe

For information:
I can connect ipsec with only 1st pppoe with this tuto http://wiki.mikrotik.com/wiki/Manual:IP/IPsec
but nothing work if I’m connect office3 to 2nd pppoe from office1


Need help. :frowning:

Sorry for my bad english. I live in a small island and We speak French.