Mikrotik Router as PPP server/client.

Picture illustrates our configuration:

We need to configure Mikrotik Router as PPP server and client.
PLC can’t act as PPP server or client. In that case we want to use router as PPP client/server.
PLC can send and receive commands and status using UDP or TCP.
In one case Router act as server and waits call from PC, but sometimes PLC must call to PC, so in that case we need to switch Router to the client mode, to give him a command call to PC and to get PPP link status (connected or not?).
Is it possible to configure Router fo our application?

Best regards,
Vadim.

UP.

Can Mikrotik Router listen some TCP/UDP port and if data come to this port then Mikrotik do some actions?
Examples, please?

So no one can help with this?

Do you want to connect via telnet and be bridged with serial port? This is possible using the special-login commands in the CLI.

Sam

Thanks for reply!
Can you show any examples for this case?

In my opinion, PLC can send custom packet of data to Mikrotik via TCP/UDP. When Mikrotik receive this data exectly, it can execute some script for disabling PPP-server and enabling PPP-client. Can anyone tell me if is it possible?

I didnt look at your drawing close enough. I thought the PLC was connected with serial … so no, this wouldn’t work.