Centos 防火墙设置
来源:互联网 发布:a1533支持什么网络 编辑:程序博客网 时间:2024/06/18 17:10
1.增加端口:
/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
2.保存配置:
/etc/rc.d/init.d/iptables save
3.重启防火墙:
/etc/init.d/iptables restart
4.检查是否生效:
/etc/init.d/iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:21
3 RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)
num target prot opt source destination
1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 255
3 ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0
- CentOS调整防火墙设置
- Linux Centos防火墙设置
- CentOS 5 防火墙设置
- Centos 防火墙设置
- Centos http 防火墙设置
- centos防火墙设置
- centos iptables防火墙设置
- CentOS 设置防火墙端口
- CentOS 防火墙设置
- centos 防火墙设置
- Centos防火墙设置
- centOS 防火墙详细设置
- centos iptables 防火墙设置
- CentOS 防火墙设置
- CentOS 7.0防火墙设置
- centos防火墙设置
- centos防火墙设置
- centos设置防火墙
- 动态规划算法剖析
- hdu1021
- 使用 P3P 规范让 IE 跨域接受第三方 cookie
- 伤感爱情日志_关于你的故事成了永久的回忆
- java版的memcached client及使用文档
- Centos 防火墙设置
- HowToRemoveTheActionSuffixExtensionInStruts2
- 前言 FLASH的前世、今生、来世
- use JAXB/CXF to process soap message XML
- Python的学习(十一)----异常处理(2)
- mysql精讲解(待续)
- 悲观锁与乐观锁
- 爱上安静、沉默,习惯了一个人
- JS中prototype的用法