Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am using CentOS 5.5. I want to add new IP in my iptables. But I cannot do it.
Tried everything with 'iptables'. The latest version of 'iptables' is at sbin. I'm in 'sbin' directory. But it says "iptables: command not found". What shall I do now?
ls -lsa /usr/sbin/iptables
ls -l /usr/sbin/iptables
ls -l iptables
In CentOS5, the iptables configuration file is /etc/sysconfig/iptables. Edit that file, and restart the firewall with /sbin/service iptables restart.
/sbin/service iptables restart
Required, but never shown