I'm using iptables on Ubuntu 10.04 and whenever I set iptables rules they will revert after a while. I set them with iptables -I INPUT or iptables -D INPUT and they work immediately and I see them in iptables -L INPUT but after a while the rules revert.
I even exported the rules
iptables-save > /etc/firewall.conf
I even created a script /etc/network/if-up.d/iptables
#!/bin/sh
iptables-restore < /etc/firewall.conf
and I even checked firewall.conf and it has the rules I want in it.
So why would iptables be reverting?
UPDATE:
I found this in /etc/cron.daily/apf
#!/bin/bash
/etc/apf/apf -f >> /dev/null 2>&1
/etc/apf/apf -s >> /dev/null 2>&1
Would this be flushing the iptables rules?