I have saved my iptables rules using the iptables-save >
command and i am trying to restore these rules when the machine boots up. I have added the command iptables-restore < "path to rules file"
in the rc.local
but it doesn't fire up the rules.
I tried directly running the command in the terminal and it worked, so i know there is nothing wrong with the command. I have made the rc.local
file executable as well with the command
sudo chmod +x /etc/rc.local
.
What might be the problem ?
Edit - am using fedora 22