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
-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?