summaryrefslogtreecommitdiff
path: root/iprule.h
diff options
context:
space:
mode:
authorKristian Evensen <kristian.evensen@gmail.com>2016-01-21 17:37:40 +0100
committerFelix Fietkau <nbd@openwrt.org>2016-01-28 22:40:38 +0100
commit1dd3df775f0beb089d8ed6ba665ee93dd4997847 (patch)
treeee8dc780f6ee6997066a59737880a45d940252a5 /iprule.h
parentbc22047b1d3ce18cdb00110dd37c6faa889f3921 (diff)
downloadnetifd-1dd3df775f0beb089d8ed6ba665ee93dd4997847.tar.gz
netifd: Route traffic from LAN to WAN using rules
After commit ebd3d8417c7a ("interface: fix moving interface address routes to the table specified by ip[46]table"), it is no longer possible for clients on LAN to reach machines on the WAN. This patch restores support for clients on LAN reaching clients on WAN by using rules. The rules are placed after the address rules, in order to make sure that traffic originating from the router is routed correctly. Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
Diffstat (limited to 'iprule.h')
-rw-r--r--iprule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/iprule.h b/iprule.h
index ea87193..e8a2555 100644
--- a/iprule.h
+++ b/iprule.h
@@ -18,6 +18,7 @@
#include "interface-ip.h"
#define IPRULE_PRIORITY_ADDR 10000
+#define IPRULE_PRIORITY_ADDR_MASK 20000
#define IPRULE_PRIORITY_NW 90000
#define IPRULE_PRIORITY_REJECT 4200000000