'service iptables save' command is not working in RHEL7 while it worked on RHEL6. Is there any other method to save the current iptables rules?

Solution Unverified - Updated -

Issue

  • When I execute the service iptables save command on my RHEL7 node, it says the following :-
[root@rhel7]# service iptables save
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
  • I would like to save the current iptables rules to some file. Whats the easiest way?

Environment

  • Red Hat Enterprise Linux 7
  • iptables

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In