Unable to start iptables
I am unable to start iptables :
Code:
-bash-3.2# /sbin/chkconfig --list | grep ip Code:
-bash-3.2# rpm -qa iptables Code:
-bash-3.2# uname -r Code:
-bash-3.2# ls /usr/src/kernels/ |
service iptables start
has it ever started ? if not you need to create the iptables file Code:
[root@bigboy tmp]# touch /etc/sysconfig/iptables http://www.linuxhomenetworking.com/w..._Won.27t_Start But of course they will be empty ! |
This what I have :
Code:
-bash-3.2# ls -l /etc/sysconfig/ | grep ipta |
I would have thought so. But if it's never been run, then it might not have any rules.
Check the iptables-config file to see if the autosave section is disabled. Either way you will have to create some rules. Have you got a gui to set the firewall up with ? |
Quote:
Code:
IPTABLES_SAVE_ON_STOP="no" To manage I will use CSF. |
Hi jonaskellens,
Hope you are using Redhat family of distros. So the place of your iptables and iptables-config are correct. My iptables-config file is here, which is working fine for me, You can compare it to yours Code:
IPTABLES_MODULES="nf_conntrack_ftp nf_conntrack_netbios_ns" Code:
# /sbin/iptables -nvL |
It doesn't matter if your iptables-config line has that as you can manually save any rules you add.
Those lines are just for anything you add after it starts, but don't want to persist on a reboot. Find a safe iptables set up from somewhere and copy it in to your iptables save the file then type Code:
service iptables save Code:
service iptables restart |
All times are GMT -5. The time now is 09:59 PM. |