netifd: Route traffic from LAN to WAN using rules
authorKristian Evensen <kristian.evensen@gmail.com>
Thu, 21 Jan 2016 16:37:40 +0000 (17:37 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 28 Jan 2016 21:40:38 +0000 (22:40 +0100)
commit1dd3df775f0beb089d8ed6ba665ee93dd4997847
treeee8dc780f6ee6997066a59737880a45d940252a5
parentbc22047b1d3ce18cdb00110dd37c6faa889f3921
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>
interface-ip.c
iprule.h