Community discussions

MikroTik App
 
PHVermeulen
just joined
Topic Author
Posts: 12
Joined: Wed Sep 25, 2013 2:02 pm
Location: Witbank

Mikrotik PPPoE Server

Wed Aug 10, 2016 12:46 pm

Hi there,

We currently have a Mikrotik 2011 configured as a PPPoE Server.

I want to route traffic from connected pppoe clients to different default routes on the PPPoE Server. Client A needs to use one Default Route and the 2011 and Client B needs to use a different Default Route.

One route is for internet browsing and the second route is used for voice traffic to our VoIP provider. I tried configuring a route mark for the traffic coming from that pppoe client connection but I think I'm missing something.

Will appreciate it if someone can shed some light on this.

Thanks
 
User avatar
Cha0s
Forum Guru
Forum Guru
Posts: 1142
Joined: Tue Oct 11, 2005 4:53 pm

Re: Mikrotik PPPoE Server

Wed Aug 10, 2016 1:13 pm

You can create separate PPP profiles with different gateways and other settings and then apply them to each PPP user.
 
PHVermeulen
just joined
Topic Author
Posts: 12
Joined: Wed Sep 25, 2013 2:02 pm
Location: Witbank

Re: Mikrotik PPPoE Server

Wed Aug 10, 2016 1:34 pm

I have checked the PPP Profile already and do not see these settings you referring to. Maybe I am missing something, please advise.
You do not have the required permissions to view the files attached to this post.
 
PHVermeulen
just joined
Topic Author
Posts: 12
Joined: Wed Sep 25, 2013 2:02 pm
Location: Witbank

Re: Mikrotik PPPoE Server

Fri Aug 12, 2016 9:12 am

I do not want to change the gateway on the client CPE.

The traffic coming from the client with a specific pppoe username needs to route to a different route on the Mikrotik PPPoE Server.
 
User avatar
lbachero
newbie
Posts: 38
Joined: Wed Oct 08, 2014 4:39 pm
Location: Dublin
Contact:

Re: Mikrotik PPPoE Server

Fri Aug 12, 2016 5:29 pm

Hello.


Please, paste your export from firewall/mangle.


Basically, you need to use mark-routing with src-address (or in-interface, if you use static interface for clients).
/ip firewall mangle add chain=prerouting src-address=Client_IP_A action=mark-routing new-routing-mark=route1
/ip firewall mangle add chain=prerouting src-address=Client_IP_B action=mark-routing new-routing-mark=route2

/ip route add gateway=ISP_IP_1 routing-mark=route1
/ip route add gateway=ISP_IP_2 routing-mark=route2
;)

Who is online

Users browsing this forum: vingjfg and 21 guests