Compare commits
2 Commits
a87b6e4320
...
b256fe4048
Author | SHA1 | Date | |
---|---|---|---|
b256fe4048 | |||
24105ecbd1 |
17
iptables-save.centos7
Normal file
17
iptables-save.centos7
Normal 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
|
Loading…
Reference in New Issue
Block a user