Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
openwrt-bot opened this issue Jun 1, 2018 · 3 comments
Closed
Labels

Comments

@openwrt-bot
Copy link

lynxis:

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

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"

@openwrt-bot
Copy link
Author

lynxis:

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

@openwrt-bot
Copy link
Author

lynxis:

Patch is on the ML openwrt-dev

@openwrt-bot
Copy link
Author

test:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant