kb9mfd wroteIf I reboot, FirewallD puts the tun0 interface in the public zone instead of the trusted zone although I used the --permanent option. This causes the entire network stack to fail for some reason and the only way I can get back in to make the change is over the local console. How do I get FirewallD to keep the tun0 interface in trusted over a reboot? Is there a script or a way to trigger a script when OpenVPN creates the tun0 interface so I can tell FirewallD to put it in the correct zone?
See
--up or perhaps
--route-up in the
manual. But perhaps a better fix is to consult
firewalld(8) documentation and see if it has a configuration file to store such things. Or even better, convert to static firewall rules! There is no checking in
iptables(8) nor
iptables-restore(8) for existence of an interface name. Your rules can refer to tun0 or even tun+ (the wildcard in iptables) before any such interface exists.
hth, regards, rob0