diff options
author | Kristian Evensen <kristian.evensen@gmail.com> | 2016-01-21 17:37:40 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-28 22:40:38 +0100 |
commit | 1dd3df775f0beb089d8ed6ba665ee93dd4997847 (patch) | |
tree | ee8dc780f6ee6997066a59737880a45d940252a5 /iprule.h | |
parent | bc22047b1d3ce18cdb00110dd37c6faa889f3921 (diff) |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |