iptables的安装与配置

由于centos7默认是使用firewall作为防火墙,下面介绍如何将系统的防火墙设置为iptables。

#停止firewall 
systemctl stop firewall.service

#禁止firewall开机启动 
systemctl disable firewall.service

#安装iptables 
yum install iptables-services

 

#iptables的设置见下面链接

https://blog.csdn.net/qq_21816375/article/details/78210989 (主要)

http://www.linuxso.com/linuxpeixun/10332.html  (案例1)

https://www.cnblogs.com/liuqiang0/p/8521427.html (案例2)

 

posted on 2018-11-24 15:27  腾飞的鹰  阅读(221)  评论(0)    收藏  举报

导航