[CentOS] Question about rebooting and iptables rules persisting

Mon Mar 26 08:04:22 UTC 2007
Wojtek.Pilorz <wpilorz at bdk.pl>

On Mon, 26 Mar 2007, Preston Crawford wrote:

> So I use Samba on my home network. I open the samba ports in the GUI tool
> for CentOS 4. Here is the problem. Every time I reboot I'm forced to run
> system-config-securitylevel to get firewall ports open again. So like if I
> reboot samba won't work. I go into that tool either via command line or
> via the GUI and I simply click "ok" and samba is suddenly open.
> 
> Does anyone know what is happening? I've tried iptables -save or whatever.
> Nothing seems to work in getting these ports to be open on reboot.
> 
> Preston

Look into file /etc/sysconfig/iptables - this is where 
system-config-securitylevel is supposed to place iptable rules 
definitions;
Are samba ports open in that file?

If so, what iptables -L -v -n reports
after system is started and after
service iptables restart?

Any messages regarding iptables in dmesg or /var/log/messages?

Wojtek