CentOS 7 中默认的防火墙不再是iptables了,需要先关闭防火墙firewall再安装iptablessystemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启...
分类:
其他好文 时间:
2015-06-29 19:26:17
阅读次数:
118
Linux关闭防火墙命令1) 永久性生效,重启后不会复原开启:chkconfig iptables on关闭:chkconfig iptables off2) 即时生效,重启后复原开启:service iptables start关闭:service iptables stop
分类:
系统相关 时间:
2015-06-29 16:15:51
阅读次数:
116
getenforce 查看selinux的状态vi /etc/selinux/config 进去改他的配置文件 永久设置他的状态setenforce 0 临时生效2. Selinux配置文件 /etc/selinux/config 三种形式:enforcing, permissive,...
分类:
其他好文 时间:
2015-06-29 00:15:09
阅读次数:
214
vsFTP默认位置: 匿名:/var/ftp/ 用户:/home/用户名 配置文件:/etc/vsftpd/ (一般安装软件后都会在/etc/下生成一个软件相关的配置文件夹)防火墙位置: /etc/sysconfig/ iptables(文件) 如果没有,请安装iptables服务 (y...
分类:
系统相关 时间:
2015-06-28 14:11:40
阅读次数:
171
整理一些常用的命令(持续更新):查看端口是否开启: netstat -an | grepprot (查看是否打开23端口) |:通道的意思,grep是指查看当前字符所在的行LINUX通过下面的命令可以开启允许对外访问的网络端口: /sbin/iptables -I INPUT -p tcp ...
分类:
系统相关 时间:
2015-06-28 14:04:36
阅读次数:
223
CentOS7默认的防火墙不是iptables,而是firewalle.安装iptableiptable-service#先检查是否安装了iptablesservice iptables status#安装iptablesyuminstall-y iptables#升级iptablesyum upd...
分类:
其他好文 时间:
2015-06-27 22:47:16
阅读次数:
406
iptables命令可用于配置Linux的包过滤规则,常用于实现防火墙、NAT。咋一看iptables的配置很复杂,掌握规律后,其实用iptables完成指定任务并不难,下面我们通过具体实例,学习iptables的详细用法。 ? 1.删除已有...
分类:
其他好文 时间:
2015-06-26 13:37:36
阅读次数:
110
iptables -A INPUT -p UDP -i $EXTIF --dport 177 --sport 1024:65534 -s 192.168.100.0/24 -j ACCEPT这里 $EXTIF 是 eth0X -query 192.168.100.254 :1这里应该是X :1 .....
分类:
系统相关 时间:
2015-06-25 21:06:41
阅读次数:
208
一、检查iptablesservice iptables status若提示为iptables:unrecognized service,则需要安装。VPS.GL提供的Linux系统都已经安装了iptables防火墙。同时,为了适应广大使用Linux朋友的需要,这里就告诉大家安装步骤。二、快速安装i...
分类:
系统相关 时间:
2015-06-25 19:21:20
阅读次数:
165
Iptables简介
iptables是与最新的 2.6.x 版本 Linux 内核集成的 IP 信息包过滤系统。如果 Linux 系统连接到因特网或 LAN、服务器或连接 LAN 和因特网的代理服务器, 则该系统有利于在 Linux 系统上更好地控制 IP 信息包过滤和防火墙配置。...
分类:
移动开发 时间:
2015-06-25 14:04:39
阅读次数:
133