you need to create a binding ovpn server in your ppp interface (with the proper user info for that user).
You can then use that interface for your routing rules.
I’m newbie to mikrotik routers, can you explain what you mean by: “create a binding ovpn server in your ppp interface”?
When ovpn user login then mikrotik create interface: ovpn-aster001 and proper dynamic filter rules:
/ip firewall filter print dynamic
Flags: X - disabled, I - invalid, D - dynamic
0 D chain=ppp action=jump jump-target=ovpn-filtered-in in-interface=<ovpn-aster001>
1 D chain=ppp action=jump jump-target=ovpn-filtered-out out-interface=<ovpn-aster001>
When a user log in it will create a temporary interface, you can not use this one with filter rules as this interface is temporary (unless you do it dynamically).
That’s why you want to ‘reserve’ an interface name for your client connection by creating a binding ones.
In winbox: ppp/interface add new ovpn server binding, fill out the name of the interface you want and the user (who is in your secret list) it will belong to.
Now you can use this new named interface for your rules.
via terminal that should be something like /interface ovpn-server add name=ovpnclient1 user=client1
now create the rules for interface ovpnclient1