• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 7 : Unable to start/enable iptables

by admin

Problem:

When trying to start/enable the iptables daemon you receive the errors:

# systemctl enable iptables
Failed to issue method call: Access denied
# systemctl start iptables
Failed to start iptables.service: Unit iptables.service failed to load: No such file or directory.

Solution:

Starting with RHEL 7, firewalld is introduced and by default the iptables package is not installed on the system. This is done to avoid conflict in running both iptables and firewalld.

Make sure you have the iptables-services package installed. This legacy package provides the systemd scripts for the previous iptables invocation. This package is not always installed, depending on your installation choices when you installed (or upgraded).

The package “iptables-services” needs to be installed before you are able to start the service.

# yum install iptables-services

Filed Under: CentOS/RHEL 7

Some more articles you might also be interested in …

  1. Managing MySQL Using Systemd As A Non Root User
  2. Understanding RPM Versions and Naming Schemes
  3. How to delete a partition using fdisk
  4. CentOS / RHEL 7 : How to remove rescue image using grubby
  5. CentOS/RHEL – How to Remove stale ISCSI Target Node Information from ISCSI Initiator Server
  6. How to enable SFTP Logging without chroot in CentOS/RHEL
  7. How to Install NTP Service and Client in CentOS/RHEL 8
  8. How to change the default location (/var/cache/yum) of yum cache
  9. How to Install Mokutil package on CentOS/RHEL 7 and 8
  10. How to Mask or Unmask a Service in CentOS/RHEL 7 and 8

You May Also Like

Primary Sidebar

Recent Posts

  • htaccess Cheatsheet
  • PHP cos function – Cosine
  • PHP connection_status function – Returns connection status bitfield
  • PHP ceil function – Round fractions up

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright