|
|
|
|
|
|
|
|
作者:peijun.jiang 一、 网络环境 1、主机A:安装freebsd4.7,安装三块网卡fxp0、xl0和xl1。 fxp0为对外网卡,IP:x.x.x.x ISP为我提供的IP地址 xl0为对内公共区域网卡,IP:192.168.0.1 xl1为对内服务提供区域网卡,IP:192.168.80.1 2、主机B:对外提供www服务主机,ip地址为:192.168.80.80 3、主机C:对外提供ftp服务主机,ip:192.168.80.3。 4、其他工作站N台。 二、编译内核 1、#cd /sys/i386/conf #cp GENERIC kernel_IPF 2、编译kernel_IPF,加入一下选项: options IPFILTER options IPFILTER_LOG options IPFILTER_DEFAULT_BLOCK 3、#/usr/sbin/config kernel_IPF #cd ../../compile/kernel_IPF #make kepend #make #make install 4、编辑/etc/rc.rc.conf,打开以下选项: defaultrouter="x.x.x.1" x.x.x.1为ISP提供的网关 gateway_enable="YES" ipfi页码:[1] [2] [3] [4] [5] [6] [7] 第1页、共7页 |
|
|
|
|
设为首页 | 加入收藏 | 广告服务 | 友情链接 | 版权申明
Copyriht 2007 - 2008 © 科普之友 All right reserved |