Hello,
I have LMS on a public IP, and need a way to limit access port by port. As I know how to get aroung in linux, I thought I'll use iptables. But I loose all my iptables rules after every reboot, and this is not a standard linux (RHEL) bahavior.
If i do "service iptables restart" after the server boots, my rules are loaded succesfully.
I googled for answers.
This is what I checked:
There are no errors in messages log.
This seems ok:
[prime/root-ade log]# chkconfig --list | grep tables
ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[prime/root-ade log]# ls -l /etc/rc3.d/ | grep iptables
lrwxrwxrwx 1 root root 18 Jul 18 2011 S08iptables -> ../init.d/iptables
Tried "service iptables save". iptables and iptables.save holds my custom rules:
[prime/root-ade log]# ls -l /etc/sysconfig/ | grep tables
-rw------- 1 root gadmin 1136 Aug 11 14:58 iptables
-rw------- 1 root root 1740 May 19 2009 iptables-config
-rw------- 1 root gadmin 1138 Aug 11 14:58 iptables.save
Putting "/sbin/service iptables restart" in /etc/rc.local doesn't help either.
Anyone?