iptables 基本命令使用举例

03月 3rd, 2008 xiao H Posted in 精品文档, 系统网络安全 No Comments »

原文地址:http://www.linuxsky.org/doc/admin/200803/262.html

一、链的基本操作

1、清除所有的规则。

1)清除预设表filter中所有规则链中的规则。

# iptables -F
Read the rest of this entry »

Popularity: 15% [?]

标签:

apache,php安全小技巧

02月 28th, 2008 xiao H Posted in 服务器应用, 系统网络安全 No Comments »

最简单的安全技巧,隐藏apache,php 的版本信息

Apache:
打开 httpd.conf,加入以下两行:

ServerTokens ProductOnly
ServerSignature Off

PHP:
打开 php.ini,加入: Read the rest of this entry »

Popularity: 15% [?]

标签:, ,

MySQL的Query Cache

02月 26th, 2008 xiao H Posted in 服务器应用, 系统网络安全 No Comments »

QueryCache(下面简称QC)是根据SQL语句来cache的。一个SQL查询如果以select开头,那么MySQL服务器将尝试对其使用 QC。每个Cache都是以SQL文本作为key来存的。在应用QC之前,SQL文本不会被作任何处理。也就是说,两个SQL语句,只要相差哪怕是一个字符(例如大小写不一样;多一个空格等),那么这两个SQL将使用不同的一个CACHE。不过SQL文本有可能会被客户端做一些处理。例如在官方的命令行客户端里,在发送SQL给服务器之前,会做如下处理:

Read the rest of this entry »

Popularity: 12% [?]

标签:, ,

LINUX下的SYN攻击防御

02月 12th, 2008 xiao H Posted in 系统网络安全 No Comments »

在怀疑有Dos攻击的时候,可以输入

netstat -an | grep -i “服务器ip地址:80″ | awk ‘{print }’| sort | uniq -c | sort -n

这个命令会自动统计Tcp连接各个状态的数量,如果SYN_RECV很高的话,就不能排除有基于tcp协议的ddos攻击的可能,这个时候可以打开tcp_syncookies,输入如下命令 Read the rest of this entry »

Popularity: 11% [?]

标签:, ,

SYN Cookie Firewall

02月 12th, 2008 xiao H Posted in 精品文档, 系统网络安全 1 Comment »

原文在:http://www.bronzesoft.org/projects/scfw/ 翻译:包子

本文介绍了4个概念
一:介绍SYN
二:什么是SYN洪水攻击
三:什么是SYN cookie
Read the rest of this entry »

Popularity: 13% [?]

标签:,

Page 1 of 11