Community discussions

MikroTik App
 
User avatar
eugenevdm
Member Candidate
Member Candidate
Topic Author
Posts: 208
Joined: Tue Jun 01, 2004 12:23 pm
Location: Stellenbosch, South Africa
Contact:

Do route-marked packets see any other routes on the router?

Mon Oct 31, 2005 11:45 am

I tried upgrading from 2.8 to 2.9 and some of my policy routing stopped working as it did in version 2.8.

My question is do route-marked packets see any other routes on the router such as the static and dynamic routes in what used to be called the "main table"?

Before in 2.8 the "main table" had dynamic and static routes which were honored before the policy routes. Now it appears as if though "mark routing" on the "pre-routing chain" in order to do policy routing bypasses these dynamic and static routes.

I have already examined this diagram but I can't see how it's different:
http://www.mikrotik.com/docs/ros/2.9/ip/flow

If it has changed what would be the workaround? Do I potentially have to recreate all the static routes and additional policy routes?

SteveD mentions a similar problem in this forum, quote: "One other thing you should be aware of is the route-marked packets will not see any other routes in your router either."
http://forum.mikrotik.com//viewtopic.ph ... highlight=

I would really like a workaround.
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Mon Oct 31, 2005 2:19 pm

Nexthops for the route-marked traffic are looked up using 'main' table only if no match is found in the mark-specific table.
 
User avatar
eugenevdm
Member Candidate
Member Candidate
Topic Author
Posts: 208
Joined: Tue Jun 01, 2004 12:23 pm
Location: Stellenbosch, South Africa
Contact:

Mon Oct 31, 2005 11:45 pm

In other words this different from 2.8 because in 2.8 you could have:

1. 0.0.0.0/0 lookup main (default router) table containing static and dynamic routes
2. any number of policy routes
3. if any of the above fails catch-all route to desired location

In 2.9 as you route-mark traffic for policy routing you are always skipping the main table, and only if the route is not found in your policy routing it will transverse the main table thereafter. Thus:

1. mangle pre-routing chain for source / dest pair with action mark-routing
2. if this fails lookup main table

No more control to check main table first because all traffic will always be routed using your poilcy route first, and only if the policy route fails it will goto the main table?

This limits me to getting to routes on the router itself if this makes any sense. I can provide a clearer example if need be.
 
User avatar
butche
Trainer
Trainer
Posts: 430
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Tue Nov 01, 2005 7:52 am

This limits me to getting to routes on the router itself if this makes any sense. I can provide a clearer example if need be.
It certainly doesn't make sense to me.

In 2.8, if a policy rule did not match, the main table is used. In 2.9, if your policy rules (routing marks) do not match, then main table (non-policy based) routes are used.
 
User avatar
eugenevdm
Member Candidate
Member Candidate
Topic Author
Posts: 208
Joined: Tue Jun 01, 2004 12:23 pm
Location: Stellenbosch, South Africa
Contact:

Tue Nov 01, 2005 8:30 am

What I'm trying to say, in 2.8, you could look up the main table FIRST, then do policy routing, and then do catchall routes.

In 2.9 you can't look up the main table first, and only if your policy routes fails it will look up the main table. One less step that was possible in 2.8. I will post routing tables here to make this more clear. It would be really wonderfull if someone from Mikrotik could also contribute.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 27073
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Tue Nov 01, 2005 8:54 am

in 2.9.7 you will have more policy routing features, you will be able to do everything you could in 2.8 plus all that you can in 2.9
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Tue Nov 01, 2005 11:24 am

2.9.7 will give you many new exciting ways to create routing loops, so to say :)
 
User avatar
HarvSki
Member
Member
Posts: 395
Joined: Fri May 28, 2004 3:37 pm
Location: London, UK

Tue Nov 01, 2005 12:27 pm

2.9.7 will give you many new exciting ways to create routing loops, so to say :)
Cynic ;)
 
User avatar
Serverwinkel.nl
just joined
Posts: 8
Joined: Mon Oct 31, 2005 2:51 pm
Location: Hilversum, The Netherlands
Contact:

default route

Thu Nov 03, 2005 12:13 am

eugenevdm has a good point, I have this problem too.
When you use the route mark, and make a route to 0.0.0.0 for a certain mark, it skips the local routes.
So local traffic gets send to the gateway for 0.0.0.0 and effectively gets lost because the gateway doesn't know what to do with it.
This only starts to be a problem when you have more then one uplink and more then one downlink on your router... throw in some VPN connections to make it a real headache.

So thanks very much for version 2.9.7, it solves many problems :)
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Thu Nov 03, 2005 2:48 am

Mikrotik rocks! : )

Sam