命令行添加端口53端口iptables


[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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章