Linux防火墙配置
来源:互联网 发布:无主之地前传修改数据 编辑:程序博客网 时间:2024/05/01 16:00
打开端口方法一:
vi /etc/sysconfig/iptables
加入
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
打开端口80
#/etc/init.d/iptables restart --重启
service iptables stop --停止
service iptables start --启动
service iptables restart --重启
打开端口方法二:
#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
#/sbin/iptables -I INPUT -p udp --dport 80 -j ACCEPT
#/etc/rc.d/init.d/iptables save
查看防火墙信息:
#/etc/init.d/iptables status
OS启动时打开关闭防火墙
/sbin/chkconfig --level 345 iptables on
/sbin/chkconfig --level 345 iptables off
vi /etc/sysconfig/iptables
加入
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
打开端口80
#/etc/init.d/iptables restart --重启
service iptables stop --停止
service iptables start --启动
service iptables restart --重启
打开端口方法二:
#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
#/sbin/iptables -I INPUT -p udp --dport 80 -j ACCEPT
#/etc/rc.d/init.d/iptables save
查看防火墙信息:
#/etc/init.d/iptables status
OS启动时打开关闭防火墙
/sbin/chkconfig --level 345 iptables on
/sbin/chkconfig --level 345 iptables off
- linux防火墙配置
- Linux 防火墙配置
- Linux 防火墙配置
- Linux防火墙配置
- Linux防火墙配置
- Linux防火墙配置
- linux修改防火墙配置
- Linux 防火墙的配置
- Linux防火墙的配置
- [Linux] 防火墙配置
- Linux的防火墙配置
- Linux Centos 配置防火墙
- linux 防火墙配置规则
- SuSE Linux防火墙配置
- linux 修改防火墙配置
- LINUX配置防火墙
- Linux 防火墙配置
- Linux防火墙配置
- 开博题记
- UTF8ToANSI UTF8ToUnicode UnicodeToANSI
- Jquery心法!
- 以CentOS为例总结如何配置SSH安全访问
- Linux网卡驱动学习
- Linux防火墙配置
- mysql 基本命令
- 合并Cursor之MergeCursor
- 题
- MySQL中的随机值
- sketchup学习和使用(一)地形的生成方案
- OCIEnvCreate 失败的问题
- linux的rz、sz命令
- csv文件导出,excel打开乱码处理