pptp server ip address policy based routing

I have a mtik router set up as a pptp server. I need to forward the traffic coming from tunnels terminated to a specific router ip address, via a particular gateway.

So basically if this traffic is coming through tunnel(s) which are terminating on router public ip address 1.2.3.1, then forward via gateway A, if its traffic from tunnels terminating on router pubic ip address 1.2.3.2 then forward via gateway B, etc.

I can specify an “address list” in the ppp profile and use simple policy based routing (mark routing based on “src address list”) and this works fine. But this is limited because a specific user can only be belong to a single profile.

I want the same vpn user to be forwarded via different gateways depending on which ip address they dialed into.

Any ideas?

Create pptp-in interface for the user, then reference that in firewall / routing

Hello CZFan and thanks for your reply, if you read the original post carefully I am trying to figure out a solution which also distinguishes the traffic by dialed in IP address.

I am trying to achieve a dynamic solution where the ppp user will be forwarded via different gateways depending on which router IP address he has dialed into.

I don’t know how to proceed but I’m sure that there are RouterOS experts in these forums that can figure this out.

:unamused: Anyone?

Managed to accomplish my goal using freeradius.