I'm getting back into the Linux game and have installed CentOS server and am stalled with saving the iptables for Apache operation.

The Rackspace guide tells me how to use the service command to save the iptables but my version of CentOS doesn't agree with the task.

Here is my system info, my command, and its response.

[mmaxfield@localhost ~]$ uname -rv
3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018

[mmaxfield@localhost ~]$ sudo 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.
  • Welcome to U&L. Can you provide a link to the mentioned guide, for context? Also on CentOS 7, firewalld replaces iptables as the default firewall and systemctl from systemd replaces the service command from SysVInit. – Haxiel Mar 17 at 4:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.