Hi,

The current generic multi-wan implementation does not work properly when a
device is connected to multiple overlapping subnets. Reaching machines outside
the networks work, but attempts to reach machines inside the networks will
always go through the first interface that was added with the subnet.

The reason for this is that the rule causing a lookup in the main table is
placed before the address-specific rules. By moving the address-specific rules
before the main-rule, the problem is solved.

Being connected to multiple networks with overlapping subnets might not be the
most common scenario, but I frequently encounter it when I for example connect
my router to multiple WLANs.

-Kristian

---
 iprule.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iprule.h b/iprule.h
index 2ac01b9..249f5bf 100644
--- a/iprule.h
+++ b/iprule.h
@@ -17,7 +17,7 @@
 
 #include "interface-ip.h"
 
-#define IPRULE_PRIORITY_ADDR 80000
+#define IPRULE_PRIORITY_ADDR 32765
 #define IPRULE_PRIORITY_NW 90000
 
 enum iprule_flags {
-- 
1.8.1.2

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to