Using wan ip for vpn connection

In my mikrotik router has 3 internet connection:
Two of them are connected as ppoe client and other fiber optic internet (connected via the SFP module).

I cannot connect from anywhere as vpn client using fiber optics ip address. But, using ip addresses ppoe can connect without any problems. If disabled ppoe connection i can connect with fibers ip, if enable can`t.

How i can configure router to be able to connect at the same time?

You’ll need to do some policy routing with routing marks to track which connection traffic comes in from so it knows which way to go back out. Right now, it sounds like your traffic is hitting the router at one of the three internet connections but always leaving out the same connection. When you remove the two other paths it has no choice but to go out the fiber. With policy routing you can mark traffic to identify if it came in from PPPoE1, PPPoE2 or Fiber.

Here’s a simple example from Butch Evans (a Mikrotik consultant in the USA):
http://blog.butchevans.com/2008/09/mikrotik-policy-routing-implementation-example/

Thanks, everything worked perfectly!!!

But after changing settings in the router appears error message on logging files such as “certificate error: client failure: requesting ca capabilities failed” and system cannot send log files to email address.

i have fixed errors whith certificates but sending logs to mails not yet fixed