Community discussions

MikroTik App
 
elies
just joined
Topic Author
Posts: 1
Joined: Mon Mar 27, 2023 7:27 am

RouterOS v7 routes, mangle and preroutes!

Mon Mar 27, 2023 7:51 am

Hello Guys,

Please Ineed help setting up the below scheme over RouterOS v7 which used to work on v6 perfectly.

I have the following:

1- Bridge - having eth1 and eth2 as internal networks ans masquraded perfectly.
eth1 subnet is 192.168.0.0/24
eth2 dhcp pool 10.0.0.0/24
MT GW 192.168.0.254 and 10.0.0.254

2- 3 Internet ISPs over eth7, eth8, eth9
eth7 being a dhcp with non-RealIP with route distance 1 and GW 192.168.1.1
eth8 being a static RealIP with route distance 5 and GW XX.XX.XX.88
eth8 being a static RealIP with route distance 10 and GW XX.XX.XX.99

3- 1 mangle rule marking eth8 gw as ISP2
1 mangle rule marking eth9 gw as ISP3

4- 1 Filter rule prerouting specific IPs in the subnet 192.168.0.0/24 towards ISP2
1 Filter rule prerouting specific IPs in the subnet 10.0.0.0/24 towards ISP3
No filter for ISP1 since it is the default with route distance 1 so anything without preroute will traverse out using ISP1

Previously in v6 even ISP1 is the default, If I ping ISP2 RealIP and ISP3 RealIP, they would be reachable without any issue. I have dst-nats over them as well.
In v7 no ping at all as long as they are not 1 in distance. Even if I set ISP2 as default it will be pingable but ISP3 no ... Not so in v7.

Besides an additional issue occured in v7 where all preroutes won't work as expected as v6.

I followed some threads over the forum, wiki ... Nothing worked. I created route tables and route rules and without any success.

For sometime it worked by adding rules for specific IP to traverse out over a different GW, but the problem was once adding the rule, the internal IP will traverse out the specified GW and will have internet but if I ping anything locally within the subnet it will reply with high latency!!

In other words I want ISP1 to be default and ISP2, ISP3 to remain up and reachable. I want to mangle and preroute the right way buy keeping internal pings low and reachable for other ips in the subnet.

Please help me resolve out these issues in v7 and thanks in advance for your efforts.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10183
Joined: Mon Jun 08, 2015 12:09 pm

Re: RouterOS v7 routes, mangle and preroutes!

Mon Mar 27, 2023 10:53 am

You will need to read up on changes in v7 as several concepts and implementations have changed between v6 and v7 especially in that area!
(route marking, route scope/target, routing filters, BGP implementation in general)

Who is online

Users browsing this forum: No registered users and 20 guests