Community discussions

MikroTik App
 
networkfudge
Trainer
Trainer
Topic Author
Posts: 136
Joined: Mon May 20, 2013 2:47 pm

pptp server ip address policy based routing

Mon Mar 19, 2018 12:40 am

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?
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: pptp server ip address policy based routing

Mon Mar 19, 2018 1:05 am

Create pptp-in interface for the user, then reference that in firewall / routing
 
networkfudge
Trainer
Trainer
Topic Author
Posts: 136
Joined: Mon May 20, 2013 2:47 pm

Re: pptp server ip address policy based routing

Mon Mar 19, 2018 8:41 am

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.

:roll: Anyone?
 
networkfudge
Trainer
Trainer
Topic Author
Posts: 136
Joined: Mon May 20, 2013 2:47 pm

Re: pptp server ip address policy based routing

Tue Mar 20, 2018 12:45 am

Managed to accomplish my goal using freeradius.

Who is online

Users browsing this forum: Ahrefs [Bot], daliad100, DimoSK, ronmik and 88 guests