fw4: only stage reflection rules if all required addrs are known
authorJo-Philipp Wich <jo@mein.io>
Thu, 10 Feb 2022 18:52:00 +0000 (19:52 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 10 Feb 2022 18:52:00 +0000 (19:52 +0100)
commit1a94915b5d38c9f17b27481add5a0a62341da627
tree25dcfa311c65279c6403a35ec0adef296e0489e5
parent5c21714dc503d9cee6a638cb8ab06fb40ae473cc
fw4: only stage reflection rules if all required addrs are known

Do not stage reflection rules if any of the internal, external or
rewrite IP addrs cannot be determined. Also emit a warning in this
case and extend the redirect test case to cover this.

Fixes: #5067
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc
tests/03_rules/07_redirect
tests/mocks/ubus/network.interface~dump.json