On 2/3/19 6:26 AM, Michael Orlitzky wrote:
You can add commands to your existing network configuration that will be
run when an interface comes up. For example, in /etc/conf.d/net,
ifup_wlan0="iwconfig \$int key s:secretkey enc open essid foobar"
Ya.... I find that to be an absolute kludge. Does it work? Yes. Is
it clean? Probably not. Is it graceful? Absolutely not.
Think about how it's possible to configure bridging / bonding / VLANs
via various parameters and having netifrc construct the commands that
are run in the background.
I'd love to see something that assumes the commands run in the main /
default / unnamed network namespace / VRF unless otherwise specified.
I'd love to be able to add a parameter to a configuration file that
tells sshd to run in a specific VRF like Alarig was wanting to do.
Heck, I'd like to see init scripts gracefully deal with the fact that
there should be multiple instances of a daemon running, even if they are
simply on different ports, much less different VRFs or namespaces.