Linux 防火墙开放特定端口 (iptables)
2015-07-07 14:42
531 查看
iptables是linux下的防火墙,同时也是服务名称。
service iptables status 查看防火墙状态service iptables start 开启防火墙service iptables stop 关闭防火墙service iptables restart 重启防火墙
防火墙开放特定端口:①文件/etc/sysconfig/iptables ②添加: -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT ★数字8080代表开放8080端口,也可以改成其他的端口★③重启防火墙service iptables restart
service iptables status 查看防火墙状态service iptables start 开启防火墙service iptables stop 关闭防火墙service iptables restart 重启防火墙
防火墙开放特定端口:①文件/etc/sysconfig/iptables ②添加: -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT ★数字8080代表开放8080端口,也可以改成其他的端口★③重启防火墙service iptables restart
相关文章推荐
- linux下防火墙开启,关闭,查看,设置
- Linux 多进程读写文件 文件锁
- 关于linux目录的读权限和执行权限(整理)
- CentOS下tar解压 gz解压 bz2等各种解压文件使用方法
- Linux下libevent安装与示例
- route命令
- Galera 10.0.20 on CentOS 6.6
- linux下mysql的数据库备份文件*.sql从高版本mysql恢复到低版本mysql
- Linux Zmodem传输数据
- linux命令useradd添加用户详解
- window 链接linux mysql 提示错误
- Linux系统下修改环境变量PATH路径
- tar命令
- centos挂载移动硬盘的方法
- Linux目录结构及文件基本操作
- Linux语言环境设置
- centos6.5下源码安装mysql密码修改
- centos普通用户设置sudo权限
- SecureCRT连接Linux主机时,如何更改连接方式为xterm
- Linux Gparted创建NTFS分区,安装Windows系统时不识别的解决方案