存档

2009年6月 的存档

冷暖自知

2009年6月30日 vi 没有评论

是对是错,什么时候才能知道。要是神就好了,可以预知未来了。

最近在干嘛呢。。没魂。。

冷暖自知!

分类: √个人碎语 标签:

ARP攻击防御配置举例

2009年6月29日 vi 3 条评论

DHCP监控模式下的ARP攻击防御配置举例

组网需求

某校园网内大部分用户通过接入设备连接网关和DHCP服务器,动态获取IP地址。管理员通过在接入交换机上全面部署ARP攻击防御相关特性,形成保护屏障,过滤掉攻击报文。详细网络应用需求分析如下。

l              校园网用户分布在两个区域Host area1和Host area2,分别属于VLAN10和VLAN20,通过接入交换机Switch A和Switch B连接到网关Gateway,最终连接外网和DHCP。

l              Host area1所在子网内拥有一台TFTP服务器,其IP地址为192.168.0.10/24,MAC地址为000d-85c7-4e00。

l              为防止仿冒网关、欺骗网关等ARP攻击形式,开启Switch A上VLAN10内、Switch B上VLAN20内ARP入侵检测功能,设置Switch A和Switch B的端口Ethernet1/0/1为ARP信任端口。

l              为防止ARP泛洪攻击,在Switch A和Switch B所有直接连接客户端的端口上开启ARP报文限速功能。同时,开启因ARP报文超速而被关闭的端口的状态自动恢复功能,并设置恢复时间间隔100秒。

组网图

   h3c-arp

图1-1 DHCP监控模式下的ARP攻击防御组网示意图

配置思路

阅读全文…

分类: √思科华为 标签:

Veritas.Netbackup 6.0 for Linux安装及两个错误的解决

2009年6月25日 vi 没有评论

网上关于Veritas.Netbackup安装的内容太少了,好不容易找着一些。摘抄一下。供后来者参考。

附上VERITAS NetBackup6.0安装指南

下载地址:http://viyin.net/ur/veritas_netbackup.pdf

错误一:
[root@vi /]# /mnt/cdrom/install

VERITAS Installation Script
Copyright 1993 – 2005 VERITAS Software Corporation, All Rights Reserved.

        Installing NetBackup Server Software
 NOTE:  To install only NetBackup Client software locally on this machine
        or to load additional UNIX client software on this server, insert
        the NetBackup UNIX Clients cdrom.
Do you wish to continue? [y,n] (y) y
The NetBackup and Media Manager software is built for use on LINUX hardware.
Do you want to install NetBackup and Media Manager files? [y,n] (y)
NetBackup and Media Manager are normally installed in /usr/openv.
The existing /usr/openv directory will be used for NetBackup and Media Manager.
Reading NetBackup files from /mnt/cdrom/linux/anb
gunzip: /mnt/cdrom/linux/anb/NetBackup.Z: No such file or directory
no data in archive
/mnt/cdrom/linux/catalog/anb/NB.file_trans failed.  Aborting …

File /usr/openv/tmp/install_trace.1984 contains a trace of this install.
That file can be deleted after you are sure the install was successful.
  阅读全文…

分类: √linux 标签:

php多域名跳转目录

2009年6月15日 vi 3 条评论

<?php
switch ($_SERVER["HTTP_HOST"]) 

case “www.viyin.net“:
define(‘WP_USE_THEMES’, true);
require(‘./wp-blog-header.php’);
break; 
case “viyin.net”:
define(‘WP_USE_THEMES’, true);
require(‘./wp-blog-header.php’);
break;
case “www.viyin.cn“:
define(‘WP_USE_THEMES’, true);
require(‘./wp-blog-header.php’);
break;

阅读全文…

分类: √文章精选 标签:

解决centos 自动安装的php不支持mysql

2009年6月14日 vi 1 条评论

在Centos5.3上装一个discuz论坛,发现discuz的提示信息里显示不支持mysql:

mysql_connect() 不支持 请检查mysql 模块是否正确加载.

 查看/usr/lib/php/modules/里面根本没有mysql.so

 找到centos5.3安装盘,找到CentOS目录下的

阅读全文…

分类: √linux 标签: , , ,

linux下加载ntfs

2009年6月5日 vi 4 条评论

查看内核版本号 下载相关的ntfs驱动
# uname -r
显示:   2.6.18-53.el5
去google搜索   kernel-module-ntfs-2.6.18-53.el5
http://rpmfind.net/linux/rpm2html/search.php?query=kernel-module页面找到
kernel-module-ntfs-2.6.18-53.el5-2.1.27-0.rr.10.11.i686.rpm下载

mount -t ntfs /dev/hda1 /mnt

以上操作只有 read权限

阅读全文…

分类: √linux 标签: , ,

RedHat和CentOs系统下的第三方软件仓库

2009年6月4日 vi 没有评论

Centos默认的yum软件仓库非常有限,仅仅限于发行版本那几张盘里面的常规包,
利用RpmForge ,可以增加非常多的第三方rpm软件包
这里
找到与系统平台架构匹配的rpmforge包安装之即可
安装完后.默认会在系统的/etc/yum.repos.d/下新增两个文件,mirrors-rpmforge和  rpmforge.repo

[root@server]# more rpmforge.repo
# Name: RPMforge RPM Repository for Red Hat Enterprise 5 – dag

阅读全文…

分类: √linux 标签: , , ,