Preston Crawford
2007-Mar-26 07:23 UTC
[CentOS] Question about rebooting and iptables rules persisting
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
Wojtek.Pilorz
2007-Mar-26 08:04 UTC
[CentOS] Question about rebooting and iptables rules persisting
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. > > PrestonLook 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