Linux防火墙
来源:互联网 发布:英伟达显卡生产商知乎 编辑:程序博客网 时间:2024/05/01 08:02
由于Linux防火墙默认是关闭8080端口。因此,若要能够访问8080端口,可以用两种方式,一个是关闭防火墙,另一个就是让防火墙开放8080端口。
开放8080端口的解决步骤如下:
1、修改/etc/sysconfig/iptables文件,增加如下一行:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
重启 iptables
service iptables restart
2、重启防火墙,这里有两种方式重启防火墙
a) 重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off
b) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop
再次从客户端访问,成功!
- Linux防火墙-单机防火墙
- Linux 防火墙
- Linux防火墙
- Linux 防火墙
- linux防火墙
- linux防火墙
- linux 防火墙
- linux 防火墙
- Linux防火墙
- Linux 防火墙
- Linux防火墙
- linux 防火墙
- Linux防火墙
- Linux防火墙
- Linux防火墙
- linux防火墙
- linux 防火墙
- Linux防火墙
- VB工程--百例56--用键盘控制小方块移动
- Oracle Enterprise Linux 5
- Android游戏开发
- 用Xmanager远程连接Red hat Enterprise Linux5
- 判断目录下是否有文件
- Linux防火墙
- 六、Struts2之输入校验
- Renaming the current file in Vim
- 2012的目标
- [转]提问的智慧(富格式图文版)
- linux下删除oracle
- C#编写Socket通信
- Android还能走多远啊
- Oracle管理与维护.手工创建数据库以及脚本