[BlueOnyx:22103] Re: What can I do to keep my iptables configuration from being wiped out

Michael Stauber mstauber at blueonyx.it
Wed May 23 16:07:38 -05 2018


Hi Jim,

> Not sure if something changed but finding my iptables that I thought was
> in place is getting wiped out and replaced with default entries. I found
> a few threads and though I could create /etc/apf to prevent it from
> happening but instead that then clears out iptables  entirely. I could
> it looks like remove /etc/cron.hourly/log_traffic it looks like to keep
> it from happening but wondering if I am missing something?
> 
> I customize my iptables. Run service iptables save which updated my
> iptables file. Reboot and it is cleared.

Right. Please either delete /etc/cron.hourly/log_traffic or edit it and
find this line:

if [ -d "/etc/apf" ];then

Right under it put an exit. So that it would look like this:

if [ -d "/etc/apf" ];then
	exit

That will do.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list