|
外网接口:192.168.245.15 网关:192.168.245.1
内网接口:192.168.0.10
客户机:192.168.0.16
rc.conf配置
defaultrouter="192.168.245.1"
hostname="FreeBSD.china.com"
ifconfig_rl0="inet 192.168.245.15 netmask 255.255.255.0"
ifconfig_rl1="inet 192.168.0.10 netmask 255.255.255.0"
ipv6_enable="YES"
linux_enable="YES"
moused_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
gateway_enable="YES"
firewall_enable="YES"
firewall_script="/etc/rc.firewall"
firewall_type="/etc/ipfw.conf"
firewall_quiet="NO"
firewall_logging_enable="YES"
natd_enable="YES"
natd_interface="rl0"
natd_flags="-config /etc/natd.conf"
ipfw
00100 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
65000 allow ip from any to any
65535 deny ip from any to any
现在能ping通192.168.0.10和192.168.245.15两块网卡了,FreeBSD网关能上网,但是客户机还是不能上网。
哪儿做错了? |
|