Bugzilla – Bug 578787
firewall: validate interface name when attaching it to zone
Last modified: 2021-02-26 20:26:23 UTC
Currently it works like this:
1. I set up zones, no complains
2. I try to save the settings, now all of the sudden interface names are validated
This workflow is tiresome, please, when user define for example eth0 is for internal zone, _immediately_ show it is unknown interface, not in very last step, when user is about to save settings.
*** This bug has been marked as a duplicate of bug 578789 ***
What is relevance with the other bug except for the poster and module (firewall)?
Validating should occur just after user entered the interface names. It has nothing to do _what_ she/he entered.
There's no reason for firewall to validate input it gets from network
modules (list of network interfaces). IMO network should check the
interfaces before returning them to firewall.
Maciej, I suppose you're using NetworkManager, which uses it's own configuration format.
To "add" interface into firewall, try just "touch /etc/sysconfig/network/ifcfg-eth0" or start "yast2 lan" and create configuration for eth0.
Does it works for you?
Thank you for the tip. This workaround works and I also confirm it is KNM related, because once I turn it off, I can change the zone directly and the interface is recognized.
Just in case, remark -- this report is about changing validation "point", not about changing validation algorithm.
Michal, is there any Network*::*() function I could you to get list
of network devices instead of interfaces? See comment #5.
Sounds like task for Michal.
Please reassign if you have some function firewall could call or simply
fix it in firewall as well :) ;)
*** Bug 683487 has been marked as a duplicate of this bug. ***
*** Bug 820382 has been marked as a duplicate of this bug. ***
*** Bug 955057 has been marked as a duplicate of this bug. ***