Date: Tue, 19 Nov 2002 19:44:46 -0800 From: "Derrick Ryalls" <ryallsd@datasphereweb.com> To: "'Constantine'" <cnst@rbcmail.ru>, <freebsd-questions@FreeBSD.org> Subject: RE: FreeBSD gateway Message-ID: <004201c29047$2e762e50$0200a8c0@bartxp> In-Reply-To: <3DDB0298.8070503@rbcmail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hello! > I have installed FreeBSD 4.7 recently, and it seems it does=20 > not want to=20 > work as a gateway. I have two network cards in my FreeBSD=20 > computer, fxp0=20 > for LAN and sis0 for the cable modem. I am new to FreeBSD, so I am=20 > confused what the difference between gateways and routers is (I was=20 > thinking they link to the same thing). I can ping my FreeBSD box from=20 > winxp, I can ping internet from remote session to FreeBSD,=20 > but I cannot=20 > ping internet from my winxp. > My winxp has ip 192.168.0.1, netmask 255.255.255.0, and gateway=20 > 192.168.0.18 settings. Now FreeBSD /etc/rc.conf follows: >=20 > gateway_enable=3D"YES" > kern_securelevel_enable=3D"NO" > nfs_reserved_port_only=3D"YES" > ifconfig_sis0=3D"DHCP" > ifconfig_fxp0=3D"inet 192.168.0.18 netmask 255.255.255.0"=20 > #router_enable=3D"YES" # from handbook gateway_enable=3D"YES"=20 > firewall_enable=3D"YES" firewall_type=3D"OPEN" natd_enable=3D"YES"=20 > natd_interface=3D"sis0" natd_flags=3D"" #/ 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. >=20 > The last two lines from dmesg: > IP packet filtering initialized, divert disabled, rule-based=20 > forwarding=20 > enabled, default to deny, logging disabled > ip_fw_ctl: invalid command >=20 > %netstat -rn > Routing tables >=20 > Internet: > Destination Gateway Flags Refs Use =20 > 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 =20 > 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 =20 > fxp0 1005 >=20 > Thank you! >=20 > -- > Constantine >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004201c29047$2e762e50$0200a8c0>