diff options
Diffstat (limited to 'package')
-rwxr-xr-x | package/iptables/files/firewall.init | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/iptables/files/firewall.init b/package/iptables/files/firewall.init index 1e39d05fd..4e8317d66 100755 --- a/package/iptables/files/firewall.init +++ b/package/iptables/files/firewall.init @@ -8,6 +8,7 @@ start() { scan_interfaces config_get WAN wan ifname + config_get WANDEV wan device config_get LAN lan ifname ## CLEAR TABLES @@ -25,6 +26,7 @@ start() { iptables -N LAN_ACCEPT [ -z "$WAN" ] || iptables -A LAN_ACCEPT -i "$WAN" -j RETURN + [ -z "$WANDEV" -o "$WANDEV" = "$WAN" ] || iptables -A LAN_ACCEPT -i "$WANDEV" -j RETURN iptables -A LAN_ACCEPT -j ACCEPT ### INPUT |