为了应对cc攻击,部署了ddosdefender软件。但该软件有个bug,在添加黑名单的时候不会判断该ip是否已经添加进去,导致了防火墙列表中有很多重复的ip地址,可以使用下面的命令删除重复的数据,只保留一条。iptables-vnL|grepDROP|awk‘{print$8}‘|grep-v"0.0.0.0"|awk‘/[0-9]/‘|so..
分类:
其他好文 时间:
2015-01-26 17:27:25
阅读次数:
166
1.关闭防火墙 [root@CentOS ~]# chkconfig iptables off 2.关闭selinux vi /etc/sysconfig/selinux //将SELINUX=enforcing修改为disabled然后重启生效 3、配置CentOS 6.0 第三方yum源(Ce....
分类:
其他好文 时间:
2015-01-26 09:59:50
阅读次数:
294
首先安装wifidog到OpenWRT的路由器: opkg update opkg install wifidogwifidog依赖下面这些模块:iptables-mod-extraiptables-mod-ipoptkmod-ipt-natiptables-mod-nat-extralibpthr...
分类:
其他好文 时间:
2015-01-25 22:28:05
阅读次数:
377
搭建过程难免会出现各种错误,所以之前最好做一个备份!!!
service iptables stop 关闭防火墙
[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive
主库
[root@localhost ~]# su - oracle
[oracle@localhos...
分类:
其他好文 时间:
2015-01-23 23:02:18
阅读次数:
364
iptables [-t TABLE] COMMAND CHAIN(链) Rule(匹配条件和规则) -j TARGET-t TABLE nat,mangle,raw,filter,默认为filterCOMMAND -F:flush,清空规则链 # iptables -t nat -F ==>清空n...
分类:
其他好文 时间:
2015-01-23 21:32:17
阅读次数:
225
linux远程连接工具一般都是用ssh,如果需要使用远程桌面连接的话就需要使用vnc 或者 rdp(直接使用windows远程连接工具就可以连接)这里我们先来看看vnc在linux的安装配置
1.)查看vnc是否安装(一般都自带安装)
rpm -qa |grep vnc
1.1)如果没有安装使用yum installvnc-server
进行安装(如果提示没有源,下...
分类:
系统相关 时间:
2015-01-23 13:24:52
阅读次数:
252
将本地80端口的请求转发到8080端口,假设主机IP为:192.168.239.121,本地网卡为eth0.命令:#iptables-tnat-APREROUTING-d192.168.239.121-ptcp--dport80-jDNAT--to192.168.239.121:8080或者:#iptables-tnat-APREROUTING-ieth0-d192.168.239.121-ptcp-mtcp--dport80-jREDIRECT..
分类:
系统相关 时间:
2015-01-22 15:50:47
阅读次数:
211
1> 重新设置启动防火墙命令#service iptables restart2>添加防火墙规则命令2.1 #service iptables stop 停止防火墙2.2 #vi /etc/sysconfig/iptables 编辑配置文件2.3 -A INPVT -P tcp -m tcp --s...
分类:
系统相关 时间:
2015-01-22 06:55:05
阅读次数:
148
辛辛苦苦编译安装完Ngnix,mysql ,PHP,后发现不能访问,后来发现是防火墙把80端口给禁用了。开启之:(以下参考自:http://llhdf.javaeye.com/blog/526176)#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCE...
分类:
其他好文 时间:
2015-01-21 18:00:42
阅读次数:
145
iptables命令的使用iptables [-t table] command [match] [-j target/jump][-t table] 指定规则表-t 参数用来,内建的规则表有三个,分别是:nat、mangle 和 filter,当未指定规则表时,则一律视为是 filter。个规则表...
分类:
其他好文 时间:
2015-01-20 13:25:51
阅读次数:
127