From owner-freebsd-questions Tue Nov 19 19:43: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C004037B401 for ; Tue, 19 Nov 2002 19:42:58 -0800 (PST) Received: from truman.datasphereweb.com (12-231-81-122.client.attbi.com [12.231.81.122]) by mx1.FreeBSD.org (Postfix) with SMTP id 7352B43E4A for ; Tue, 19 Nov 2002 19:42:54 -0800 (PST) (envelope-from ryallsd@datasphereweb.com) Received: (qmail 66635 invoked from network); 20 Nov 2002 03:51:23 -0000 Received: from 12-229-238-38.client.attbi.com (HELO bartxp) (12.229.238.38) by 12-231-81-122.client.attbi.com with SMTP; 20 Nov 2002 03:51:23 -0000 From: "Derrick Ryalls" To: "'Constantine'" , Subject: RE: FreeBSD gateway Date: Tue, 19 Nov 2002 19:44:46 -0800 Message-ID: <004201c29047$2e762e50$0200a8c0@bartxp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <3DDB0298.8070503@rbcmail.ru> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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