[CentOS] Why iptables are not working?

Daniel de Kok me at danieldk.org
Wed Jan 23 12:01:27 UTC 2008


On 1/23/08, Tolun ARDAHANLI <tolun.ardahanli at linux.org.tr> wrote:
> in our server we dont have "iptables" command! and i am trying to install it
> with that
>
> yum -y install iptables
>
> after this command it says that "...nothings to do". Do you have any
> suggestion for installing the iptables?

Then it's probably installed, which you can check with:
rpm -q iptables

Note that iptables is in /sbin. So, if you are changing to root, use
su with a dash (-) to make sure that the PATH variable is updated:

su -

If not, you'll have to specify the full path to the iptables command.

-- Daniel



More information about the CentOS mailing list