OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Base system
  • Assigned To
    Alexander Couzens
  • Operating System All
  • Severity Low
  • Priority Medium
  • Reported Version All
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Alexander Couzens - 01.06.2018
Last edited by Hans Dedecker - 28.07.2018

FS#1571 - netifd does not honor rules when using network.lan.enabled=0|1

Device: ar71xx TP-LINK TL-WR841N/ND v9
Revision: c8fdd0e9c843dd483f6677dc41f7df17313aa3cd

netifd: does not apply network rules after disabling the interface via uci set network.lan.enabled=0 and reenabling it via uci set network.l .enabled=1

Steps to reproduce:

uci set network.guestable=rule
uci set network.guestable.in=lan
uci set network.guestable.lookup='1001'
uci set network.guestable.priority='100'
uci set network.unreach=rule
uci set network.unreach.in=lan
uci set network.unreach.action='unreachable'
uci set network.unreach.priority='110'
uci set network.lan.enabled=1
ubus call network reload
sleep 5
ip ru sho

uci set network.lan.enabled=0
ubus call network reload
sleep 5
uci set network.lan.enabled=1
ubus call network reload
sleep 5
ip ru sho
echo "The rules are missing now"


Closed by  Hans Dedecker
28.07.2018 18:53
Reason for closing:  Fixed
Additional comments about closing:  

Fixed in commit https://git.op enwrt.org/?p=project/netifd.git;a=commit ;h=5cf79759a24e9bb2a6a3aef7c83d73efb9bf2 df3

Project Manager
Alexander Couzens commented on 14.06.2018 23:46

netifd is only evaluating the iprules after config changes happened.
Meaning if an iprule is depending on an interface (has oif or iif):
* the rule fails when the interface is not present
* the rule will not be re-added if the interface goes down and up

Project Manager
Alexander Couzens commented on 18.06.2018 14:33

Patch is on the ML openwrt-dev

test commented on 25.06.2018 15:30

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing