centos7.0 iptables使用

2017-05-04  本文已影响20人  imsilence

在centos7.0默认使用firewalld服务,若萱使用iptables,需要禁用firewalld并启动iptables

systemctl stop firewalld
systemctl disable firewalld

安装 iptables

yum install iptables-services
systemctl enbale iptables

cp /usr/libexec/iptables/iptables.init /etc/init.d/iptables

service iptables save
service iptables stop
service iptables start

systemctl stop iptables
systemctl start iptables

上一篇下一篇

猜你喜欢

热点阅读