Scott Kitterman wrote: > On Monday, March 23, 2020 7:47:25 PM EDT Bob Proulx wrote:
But don't forget I also said: > > I know you said you are running Fedora but I imagine that Fedora > > has something like this but in a different place. Doesn't Fedora > > have a /etc/sysconfig/network-scripts/ directory where event > > scripts reside? I am sure a Fedora knowledgeable person would be > > able to say. > > On my Debian (and therefore Ubuntu, Mint, other derivatives) I would > > add a script /etc/network/if-up.d/postfix-local (in addition to the > > already existing "postfix" script there) that does this when the VPN > > interface comes up, and a script /etc/network/if-down.d/postfix-local > > for the other end. > > if-up and if-down are Debian (and derivative) specific. I don't > believe it is shared with distros from any other lineage. Right. I said that. But many people like Fedora. I hear it is a capable OS. Therefore I assume it must have capability. Even if you and I do not know how it should be done ourselves. What about /etc/sysconfig/network-scripts/ifup-post and the others? I see a /etc/sysconfig/network-scripts/ifup-tunnel event script. Surely there is a Right Place in there somewhere to insert an event driven action? Those appear to source a file /etc/sysconfig/network that could be (ab)used for this purpose too. If I had no other way then I would wedge it in there. I am looking at RHEL which is as close to a Fedora system as I have available to peek into at this moment. But I would find it very shocking if the answer really is that Fedora does not have this capability. Bob