<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 23, 2015 at 9:50 AM, Kristian Evensen <span dir="ltr"><<a href="mailto:kristian.evensen@gmail.com" target="_blank">kristian.evensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On Wed, Sep 9, 2015 at 3:45 PM, Hans Dedecker <<a href="mailto:dedeckeh@gmail.com">dedeckeh@gmail.com</a>> wrote:<br>
> Specific IP address and network rules are now checked before the main table lookup as the main table<br>
> often holds a default route. As a result the IP address and network rules pointing to s specific<br>
> routing table will not be checked anymore; by reversing the order the specific routing tables<br>
> are checked first if the ip rule matches.<br>
<br>
This commit breaks existing behavior in the following use case:<br>
<br>
A multihomed router with some service available on one of the external<br>
interfaces that should be reachable on the WAN. The destination</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
routing works fine, but replies are sent out on the wrong interface.<br>
The reason is that the nw rule is checked before main, so packets are<br>
routed back out on the WAN interface (and not to the LAN).</blockquote><div>Can you share the uci network config and ifstatus of the different interfaces ? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I don't see any other fix than a partial revert. I guess the ADDR-rule can stay.</blockquote><div>Is the service hosted on the multihomed router or on a lan device; nat involved or not ?</div><div>It seems odd to me if the service is hosted on the gateway the nw rule is hit as the local table lookup has pref 1 while the NW policy rules start from 20000</div><div><br></div><div>Hans  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
-Kristian<br>
</font></span></blockquote></div><br></div></div>