Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

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

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?

Everyone's tags (5)
1 REPLY
New Member

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

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

473
Views
0
Helpful
1
Replies
CreatePlease login to create content