Answer the question
In order to leave comments, you need to log in
How to save a command in CentOS-7?
Every time you restart the server, you have to enter this command iptables -I INPUT -p tcp --dport 443 -j ACCEPT
to make the site work over https. service iptables save not working in CentOS-7, how to save?
Answer the question
In order to leave comments, you need to log in
View /etc/sysconfig/iptables-config, parameters:
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
Firewalld came to CentOS 7 to replace the old iptables. If there is a strong desire to continue using iptables, you must
first disable firewalld ,
systemctl stop firewalld
systemctl mask firewalld
yum install iptables-services
systemctl enable iptables-services
iptables-save > /etc/sysconfig/iptables
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question