| 发表于: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怎么还是不能上网啊!请高手指点 |
|
|
|
|