命令行添加端口53端口iptables

时间:2015-10-10 18:41:24   收藏:0   阅读:248


[root@centos httpd]# /sbin/iptables -I INPUT -p tcp --dport 53 -j ACCEPT

[root@centos httpd]# /etc/rc.d/init.d/iptables save

[root@centos httpd]# /etc/init.d/iptables restart

这样就搞定了,查看效果

[root@centos httpd]# /etc/init.d/iptables status


原文:http://qingzh.blog.51cto.com/6800583/1701586

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!