How to enable iptables on CentOS 7 / Fedora 20?

iptables is plain old good. How to enable it after I disable firewalld?

asked Apr 9, 2014 by Eric Z Ma (44,280 points)
edited Aug 14, 2017 by Eric Z Ma

1 Answer

 
Best answer

First, install the iptables-services package as root:

#  yum install iptables-services

Then, start iptables service as root:

# touch /etc/sysconfig/iptables
# touch /etc/sysconfig/ip6tables
# systemctl start iptables
# systemctl start ip6tables
# systemctl enable iptables
# systemctl enable ip6tables
answered Apr 9, 2014 by Eric Z Ma (44,280 points)
edited Apr 9, 2014 by Eric Z Ma

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...