iptables save centos7

This commit is contained in:
G.J.C. Strikwerda 2018-03-21 11:14:14 +01:00
parent 46470f7f16
commit 24105ecbd1
1 changed files with 17 additions and 0 deletions

17
iptables-save.centos7 Normal file
View File

@ -0,0 +1,17 @@
save iptables in CentOS7:
disable firewalld daemon:
# systemctl disable firewalld
Then install iptables-service by following command:
# yum install iptables-services
Then enable iptables as services:
# systemctl enable iptables
Now you can save your iptable rules by following command:
# service iptables save