I'm probably missing the simplest of things, but my iptables rules file is not being loaded on (Kubunto 10.10) system startup. This is what I have:
However, when I reboot my system, I still get the vanilla iptables rules being loaded. Any ideas what am I missing? Does my file in the "if-pre-up.d" folder need to have a particular name or extension to be loaded? If not, how does my system know to load my file, or does it just run all files it find in the folder? I would prefer not to modify my "/etc/network/interfaces" file if I don't have to (and from my research, I get the impression the "interfaces" method is an alternative method to using the "if-pre-up.d" method?).
Thanks
- a "myfirewall.rules file" generated using iptables-save. This file has been tested using iptables-restore and works.
- In the "/etc/network/if-pre-up.d" folder, I have a bash script called "set-iptables-rules.sh" which performs iptables-restore with my rules file. This script has been tested and works.
However, when I reboot my system, I still get the vanilla iptables rules being loaded. Any ideas what am I missing? Does my file in the "if-pre-up.d" folder need to have a particular name or extension to be loaded? If not, how does my system know to load my file, or does it just run all files it find in the folder? I would prefer not to modify my "/etc/network/interfaces" file if I don't have to (and from my research, I get the impression the "interfaces" method is an alternative method to using the "if-pre-up.d" method?).
Thanks
Comment