Community discussions

MikroTik App
 
User avatar
LatinSuD
Member Candidate
Member Candidate
Topic Author
Posts: 181
Joined: Wed Jun 29, 2005 1:05 pm
Location: Spain
Contact:

Problem with multipath routing & load balance addresses

Thu Jun 30, 2005 6:30 pm

Hi, i was testing multipath routing (for load balancing over 2 isp) and found a problem. In my simulation environment i used a couple of conceptronic routers to use as gateways. I also have masqueraded hotspot users (and freeradius+mysql but that's another story).

Network figure

Masqueraded hosts worked ok, but mikrotik itself didn't, neither proxy and dns requests if redirected through mikrotik. By using sniffer tool i found out that it was trying to send packets to router 2 using the address of the network of router 1 (or viceversa).

It looks that i found a solution using policy routing:

- Create a table for each gateway, inside each table create a rule to use default gateway the address of the gateway.

- Create a rule that matches mikrotik src address on that interface. Action must be "lookup" in the corresponding routing table.
This seems to work.

Is it the right solution for this problem?
 
User avatar
[ASM]
Member Candidate
Member Candidate
Posts: 284
Joined: Sun Jun 06, 2004 12:59 am
Location: Sofia, Bulgaria
Contact:

Thu Jun 30, 2005 8:05 pm

some kind of configuration problem... plese post results from:

/ip route export
/ip policy-routing export
/ip firewall src-nat export
/ip firewall dst-nat export
/ip address export
 
isabido
just joined
Posts: 10
Joined: Mon Jun 06, 2005 10:13 pm
Location: Spain (Huelva)

Re: Problem with multipath routing & load balance addres

Fri Aug 05, 2005 12:17 pm

Hi, i was testing multipath routing (for load balancing over 2 isp) and found a problem. In my simulation environment i used a couple of conceptronic routers to use as gateways. I also have masqueraded hotspot users (and freeradius+mysql but that's another story).

Network figure

Masqueraded hosts worked ok, but mikrotik itself didn't, neither proxy and dns requests if redirected through mikrotik. By using sniffer tool i found out that it was trying to send packets to router 2 using the address of the network of router 1 (or viceversa).

It looks that i found a solution using policy routing:

- Create a table for each gateway, inside each table create a rule to use default gateway the address of the gateway.

- Create a rule that matches mikrotik src address on that interface. Action must be "lookup" in the corresponding routing table.
This seems to work.

Is it the right solution for this problem?

Latin te doy mi msn, piltrafilladx01@hotmail.com

Spain, Huelva.
 
spire2z
Long time Member
Long time Member
Posts: 516
Joined: Mon Feb 14, 2005 2:48 am

Fri Aug 05, 2005 4:03 pm

All these dual gateway problems seem to be related in some way. I have not done a sniffer test yet but I will.