CentOS Startup Script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

CentOS Startup Script

Post by stebbo »

Hi All,

I've just started getting DHCP offer errors, and was able to fix it via the advice from this thread
http://support.nagios.com/forum/viewtop ... 07&p=31206

I'd like to add the iptables command to the CentOS startup script so that I don't have to remember to do it each time the system restarts. Can anyone point me to the system startup script please?

Ta muchly,
Chris.
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: CentOS Startup Script

Post by CGraham »

did you run

"service iptables save"

after the iptables change? I believe that makes the changes permanent.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CentOS Startup Script

Post by lmiltchev »

In addition to the last post, open the "iptables-config":

Code: Select all

vi /etc/sysconfig/iptables-config
and make sure you have the following lines:

Code: Select all

IPTABLES_SAVE_ON_STOP="yes"
IPTABLES_SAVE_ON_RESTART="yes"
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Re: CentOS Startup Script

Post by stebbo »

Thanks all,

I have done those.

Cheers,
Chris.
Locked