Mikrotik RB750GL Setup Assistance

Messugga

Honorary Master
Joined
Sep 4, 2007
Messages
13,051
Reaction score
3,203
Location
Pretoria
So I've been trying for a bit and I'm getting stuck. I'm probably missing something obvious, but Mikrotik isn't my strong point. I'm at the point where I'm willing to pay someone to do this for me...

I have a Mikrotik RB750GL. I want it to route some traffic over a PPPoE connection (my ADSL connection) and route other traffic over my RAIN connection. Traffic would be segregated based on which websites I'm accessing - general browsing/Youtube via RAIN, everything else via ADSL, as an example.

Is what I want possible? If so, how do I go about it? First prize is someone put me out of my misery and do it for me.
At the moment, I have PPPoE going out over ethernet1 which works beautifully. However, as soon as I enable ethernet2, which is a DHCP client and gets an IP from the RAIN modem, it looks like all internet connectivity dies, including my ADSL traffic.

Assistance would be appreciated!
 
What you want, yes you can do. You will need to set up some Mangle rules.

For your first prize disable add default route in the dhcp client of rain connection and see if you still have internet, vis adsl
 
What you want, yes you can do. You will need to set up some Mangle rules.

For your first prize disable add default route in the dhcp client of rain connection and see if you still have internet, vis adsl

This seems to have solved that issue, thanks! So now it's a matter of setting up routing appropriately, I suppose.
 
Yip if disabled add default route then you will need need to add a static gw route. You will need to specify the metric between the adsl and rain gw routes
 
Yip if disabled add default route then you will need need to add a static gw route. You will need to specify the metric between the adsl and rain gw routes
Mark specific routing based on mangle rules marking packets destined for the rain interface.
 
Peon managed to sort out my nonsense for the most part. Now to figure out a script to add youtube to an address list for packet marking purposes...
 
Peon managed to sort out my nonsense for the most part. Now to figure out a script to add youtube to an address list for packet marking purposes...

Add Youtube to L7 regex
Code:
/ip firewall layer7-protocol add regexp=^.+youtube.*S name=Youtube

Add a mangle rule
Code:
/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=Youtube passthrough=yes layer7-protocol=Youtube log=no log-prefix=""

Add static rule to go to Youtube via which interface
Code:
/ip route add dst-address=0.0.0.0/0 gateway=ether2 routing-mark=Youtube

Gateway you can seelct interface name or IP, I just used the interface name as you said, but rather change it to your rain lte router IP.
 
Add Youtube to L7 regex
Code:
/ip firewall layer7-protocol add regexp=^.+youtube.*S name=Youtube

Add a mangle rule
Code:
/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=Youtube passthrough=yes layer7-protocol=Youtube log=no log-prefix=""

Add static rule to go to Youtube via which interface
Code:
/ip route add dst-address=0.0.0.0/0 gateway=ether2 routing-mark=Youtube

Gateway you can seelct interface name or IP, I just used the interface name as you said, but rather change it to your rain lte router IP.

Awesome, thanks. Peon set it up with a little script that grabs IPs from DNS entries. Looks like there's a bit of an issue with that script on my router. I've debugged it some, but not done with that yet.
Anyway, from some Google searches, it looks like sites such as YouTube is trickier than others, so I'll give your suggestion a bash.

Thanks!
 
Top
Sign up to the MyBroadband newsletter
X