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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  2. How to use rndc command (command-line administration tool for named)
  3. ip Command Examples to Manage Networking in Linux
  4. Understanding Linux SCSI Reservation
  5. How to Configure Network Teaming in CentOS/RHEL 7
  6. How to Set External Network For Containers in Linux Containers (LXC)
  7. CentOS / RHEL 7 : How to Enable the Old ethX Style Network Interfaces Names
  8. How to Partition DM-Multipath Pseudo Devices in CentOS/RHEL
  9. SSSD Service Failing with “SSSD is already running” in CentOS/RHEL 7
  10. How to enable additional scsi logging in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • Oracle Database – Configuring Secure Application Roles
  • Extend rule sets by using factors in Oracle Database Vault
  • What are Command Rules in oracle Database
  • Using Rule Sets in Oracle Database Vault
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary