linux 网络配置 防火墙设置 【详细教程】

今天爱分享给大家带来linux 网络配置 防火墙设置 【详细教程】,希望大家能够喜欢。

查看防火墙:service iptables status
临时设置:

启动防火墙:service iptables start
关闭防火墙:service iptables stop
重启防火墙:service iptables restart
永久设置:

允许防火墙:chkconfig iptables on
禁止防火墙:chkconfig iptables off
单独添加:

/sbin/iptables -I INPUT -p tcp –dport 80 -j ACCEPT
/sbin/iptables -I INPUT -p tcp –dport 22 -j ACCEPT
/sbin/iptables -I INPUT -p tcp –dport 3306 -j ACCEPT
/sbin/iptables -I INPUT -p tcp –dport 8080 -j ACCEPT
保存:/etc/rc.d/init.d/iptables save
查看:/etc/init.d/iptables status
单独禁止:

/sbin/iptables -I INPUT -p tcp –dport 80 -j DROP
/sbin/iptables -I INPUT -p tcp –dport 22 -j DROP
/sbin/iptables -I INPUT -p tcp –dport 3306 -j DROP
/sbin/iptables -I INPUT -p tcp –dport 8080 -j DROP
保存:/etc/rc.d/init.d/iptables save
查看:/etc/init.d/iptables status

原文链接:http://blog.itblood.com/298.html,转载请注明出处。
0
公共性生活Hv0.81汉化版 Public Sex Life H [v0.81] [欧美SLG/汉化/动态]
公共性生活Hv0.81汉化版 Public Sex Life H [v0.81] [欧美SLG/汉化/动态]
6分钟前 有人购买 去瞅瞅看

站点公告

显示验证码
没有账号?注册  忘记密码?