> Hello! > I have installed FreeBSD 4.7 recently, and it seems it does > not want to > work as a gateway. I have two network cards in my FreeBSD > computer, fxp0 > for LAN and sis0 for the cable modem. I am new to FreeBSD, so I am > confused what the difference between gateways and routers is (I was > thinking they link to the same thing). I can ping my FreeBSD box from > winxp, I can ping internet from remote session to FreeBSD, > but I cannot > ping internet from my winxp. > My winxp has ip 192.168.0.1, netmask 255.255.255.0, and gateway > 192.168.0.18 settings. Now FreeBSD /etc/rc.conf follows: > > gateway_enable="YES" > kern_securelevel_enable="NO" > nfs_reserved_port_only="YES" > ifconfig_sis0="DHCP" > ifconfig_fxp0="inet 192.168.0.18 netmask 255.255.255.0" > #router_enable="YES" # from handbook gateway_enable="YES" > firewall_enable="YES" firewall_type="OPEN" natd_enable="YES" > natd_interface="sis0" natd_flags="" #/ handbook
Are your ip's reversed? I think the gateway should have the .1 address and the xp box should use the .18 Are you using the default kernel? If so, you will need to add a couple lines are recompile. options IPFIREWALL #firewall options IPDIVERT #divert sockets as for the difference between a router and a gateway, a gateway is a machine to deal with going from one network (lan) to another network (wan), I think. > > The last two lines from dmesg: > IP packet filtering initialized, divert disabled, rule-based > forwarding > enabled, default to deny, logging disabled > ip_fw_ctl: invalid command > > %netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Refs Use > Netif Expire > default 68.105.xxx.x UGSc 2 0 sis0 > 68.105.xxx/24 link#1 UC 1 0 sis0 > 68.105.xxx.x 00:03:xx:xx:xx:xx UHLW 3 0 > sis0 1197 > 68.105.xxx.xxx 127.0.0.1 UGHS 0 0 lo0 > 127.0.0.1 127.0.0.1 UH 1 0 lo0 > 192.168.0 link#2 UC 1 0 fxp0 > 192.168.0.1 00:04:xx:xx:xx:xx UHLW 3 28742 > fxp0 1005 > > Thank you! > > -- > Constantine > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message