Hello,
I'm having problem with policy rules for two IPsec tunnels. Here's simplified version of my situation:
- two RB450G with ROS v4.2. For further description, I'll call them routerA and routerB
- there are two working IPsec tunnels between them. Again, called tunnelA and tunnelB
- behind routerA is network 10.0.1.0/24, let's call it netA
- behind routerB is network 10.0.2.0/24, called netB
My goal is:
Every communication between netA and netB should go thru tunnelA EXCEPT some special types eg. IMAP, POP3, HTTP,... This communication should go thru tunnelB
Explanation:
tunnelA is over 1Mbps/1Mbps and tunnelB is over 8Mbps/512kBps connection. Therefor, when routerA is sending huge data, I'd like to send it over faster line. And yes, I need IPsec.
So far, I set two testing policies:
routerA
src: 10.0.1.0/24, dst: 10.0.2.0/24, thru tunnelA
src: 10.0.1.2, dst: 10.0.2.0/24, thru tunnelB
routerB
same as above, but reverse.
With my testing setup, I though I would achieve, that every comunnication between these subnets will go thru tunnelA, but communication from 10.0.1.2 will go thru tunnelB.
But not. First rule overrides the second, and everything goes thru tunnelA.
I'm missing something like order of policies. If I could say, that some rule will be in front of another, that would solve this problem.
My question is: Is there some posibility to make it work?
Guys, thanks for even reading this long post. Any pointing is appreciated.
Martin Kudlacek, CZE