store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sat May 25, 2013 9:36 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 
Author Message
 Post subject: edit iptables manually
Unread postPosted: Mon May 23, 2011 8:04 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
How do I stop system-config-securitylevel from writing the iptables config?
I want to write the iptables on my own and make the rules persistent after a reboot.
Right now system-config-securitylevel is poking in the config which is really annoying.
There must be a simple way to achieve this. Unfortunately I can't find it.
I can't imagine Redhat hasn't thought about that.

or is it a plain "yum remove system-config-securitylevel-tui" which will remove firstboot-tui too?

Thanks a lot


Top
 Profile  
 
 Post subject: Re: edit iptables manually
Unread postPosted: Mon May 23, 2011 9:55 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
system-config-securitylevel isn't actively rewriting your firewall, it's just that on boot the saved rules get restored and those happen to be the rules generated by system-config-securitylevel in your case. Uninstalling that tool isn't going to change what rules get loaded at boot time.

You can just modify your iptables rules and execute 'service iptables save' to persist the current rules and those will get loaded again after a reboot.

You could also manually edit /etc/sysconfig/iptables (that is where the rules get saved) and run 'service iptables restart' to activate them if you like.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: edit iptables manually
Unread postPosted: Mon May 23, 2011 10:06 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
Thanks breun,

so if no one is using system-config-securitylevel-tui nothing will be overwritten at any time and the iptbales config I have made and saved will stay vali, even after reboot?
Thanks a lot for your quick help.


Top
 Profile  
 
 Post subject: Re: edit iptables manually
Unread postPosted: Mon May 23, 2011 10:25 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
BruceLee wrote:
so if no one is using system-config-securitylevel-tui nothing will be overwritten at any time and the iptbales config I have made and saved will stay vali, even after reboot?


After you modify your rules you do need to run 'service iptables save' or the new rules won't be saved for the next startup.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: edit iptables manually
Unread postPosted: Mon May 23, 2011 10:47 am 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
Thanks a lot


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 5 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group