iptables doesn't start on boot up
OK, I'm stumped on this one, can't seem to see the problem.
Running CentOS 5.3 and its upto date as of 10 minutes ago. If I reboot it, everything comes back up but if I run iptables -L it shows me a blank tables list: Code:
Chain INPUT (policy ACCEPT) Code:
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off Any ideas? |
After you load your rules, you need to save them using service iptables save as mentioned here. After that, it'll do what you are expecting.
|
Just setup the firewall, then save the setup:
/etc/init.d/iptable save and then set it to start at boot: chkconfig iptables on. This should do the job. |
You two were quite correct. Forgot you had to do that, I'd been putting it into /etc/sysconfig/iptables setting the service up and just expecting it to load.
Odd how you have to save them first, it does however remove my comments from the iptables script. Is this why it was broken? |
Quote:
Use "chkconfig --list | grep 3:on" to see which services will start at boot (runlevel 3). Manage the list with "chkconfig serviceName on" or chkconfig serviceName off". |
All I did was the /etc/init.d/iptables save I didn't do any of the other chkconfig items as already listed above, its already set to on.
Code:
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off |
All times are GMT -5. The time now is 06:46 AM. |