Hi,
Try to achieve a simple task with a RB750G (ROS 5.7).
Port
1 1st-ISP - 10.0.10.2 (gw 10.0.10.1)
2 2nd-ISP - 192.168.1.2 (gw 192.168.1.1)
3 Hotspot-LAN - 10.5.50.1
4 Office-LAN - 192.168.88.1
5
All I want is that Office-LAN is using 2nd-ISP and Hotspot-LAN is using 1st-ISP.
From what I understand I have to use the Mangle functionality to mark routes and connection.
I have another RB450G using this but with pcc load balancing and two ISPs. Works great!
But this one is supposed to be simple and I did not use any pcc or other policy stuff.
I set up two static default routes and use Router Mark wan1 and wan2.
/ip route
1 A S dst-address=0.0.0.0/0 gateway=pppoe-out1 gateway-status=2nd-ISP reachable distance=1
scope=30 target-scope=10 routing-mark=wan2
2 A S dst-address=0.0.0.0/0 gateway=ether1-Internet1 gateway-status=1st-ISP reachable
distance=1 scope=30 target-scope=10 routing-mark=wan1
3 A S dst-address=0.0.0.0/0 gateway=ether1-Internet1 gateway-status=1st-ISP reachable
distance=1 scope=30 target-scope=10
In order to use routing marks I obviously have to set them and that happens (only) in the firewall mangle part.
To get to the Internet I also have to set masquerading for both ports.
I tried several combinations to get /ip firewall mangle and nat going, but it seems I missing something as my traceroutes are not hitting the target and only reach the port on the RB and then timeout.
I set a mangle rule for 'mark-connection' and one for mark-routing' per ISP marking them with wan1 and wan2.
Is there somewhere kind of a recipe with (many) examples using mangle and nat for this purpose?
I presume I will receive replies (if any) with RTFM ... but I did. Seems I am not wiser afterwards.
Any help appreciated. Thanks!