cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
936
Views
0
Helpful
1
Replies

LMS4.2.1 using iptables in soft applience to control access to server

ignasr8686
Level 1
Level 1

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?

1 Reply 1

ignasr8686
Level 1
Level 1

Workaround: backup "firewall" executable and create an empty bash script with the same name instead. Then use iptables.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: