Hi,
I am trying to add a webserver to my desktop fedora machine, and in order to do so I need the ports 80 and 443 to be open. I can achieve this by using iptables, and I saved my configuration to a file (/root/iptables_rules). When I reboot the computer, I can type iptables-restore < /root/iptables_rules to restore the previously set rules. However, when I put that command in /etc/rc.local it seems to have no effect. The permissions on /root/iptables_rules are -rw-r--r--. (user root:root) .
I have also tried putting the command in a systemd unit which runs after network, which also had no effect. Does anyone know what might be causing this/how I can fix it?
Sorry I forgot, for some reason or another the package provided systemd unit file is missing the installation config. Easily fixed by creating a unit file in /etc/systemd/system, to prevent it being overwritten in future updates: