您的位置:程序门 -> linux/unix社区 -> 系统维护与使用区



freebsd4.7上网问题


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


freebsd4.7上网问题
发表于:2008-01-07 16:43:15 楼主
局网有两个服务器,一个主域,一个备份域。主域ip   192.168.1.245,备份域ip   192.168.1.193。
现有isp固定ip   10.16.0.2
想配置一台freebsd4.7上服务器作网关使指定的客户端上internet网。
现在etc/rc.conf  
kern-securelevel-enable="no"  
nfs-reserved-port-only="yes"  
sendmail-enabel="yes"  
sshd-enable="yes"  
ifconfig-fxp1="inet   192.168.1.250   netmask   255.255.255.0"  
ifconfig-fxp0="inet   10.16.0.2   netmask   255.255.255.252"  
defaultrouter="10.16.0.1"  
hostname="gate.kai.com.cn"  
ipfilter-enable="yes"  
ipfilter-rules=/etc/ipf.conf  
ipnat-enable="yes"  
ipnat-rules=/etc/ipnat.conf  
gateway-enale="yes"  
在ipf.conf  
pass   inall  
pass   outall  
在ipnat.conf  
map   fxp0   192.168.1.1/32->   10.16.0.2/32  
在hosts  
127.0.0.1   localhost.kai.com.cn   localhost  
192.168.1.250   gate.kai.com.cn   gate  
10.16.0.2   gate.kai.com.cn  
在resolv.conf  
domain   kai.com.cn  
nameserver   211.100.213.154  
客户端192.168.1.1怎么还是不能上网啊!请高手指点
发表于:2008-01-07 22:34:031楼 得分:0
echo   “1”> /proc/sys/nat/ipv4/ip_forward   要打开ip地址转发
发表于:2008-01-09 08:20:152楼 得分:0
echo       “1”>   /proc/sys/nat/ipv4/ip_forward       要打开ip地址转发       这句的功能相当这句吧!
gateway-enale="yes"  
但是如果把客户机的网关设为192.168.245就上不去了


快速检索

热门点击