From owner-freebsd-questions Tue Nov 19 19:34:26 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 8544337B401 for ; Tue, 19 Nov 2002 19:34:24 -0800 (PST) Received: from lakemtao01.cox.net (lakemtao01.cox.net [68.1.17.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id 310FB43E42 for ; Tue, 19 Nov 2002 19:34:23 -0800 (PST) (envelope-from cnst@rbcmail.ru) Received: from rbcmail.ru ([68.101.14.72]) by lakemtao01.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20021120033421.VQKF2199.lakemtao01.cox.net@rbcmail.ru>; Tue, 19 Nov 2002 22:34:21 -0500 Message-ID: <3DDB0298.8070503@rbcmail.ru> Date: Tue, 19 Nov 2002 22:33:44 -0500 From: Constantine User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.1) Gecko/20020826 X-Accept-Language: en-gb, ru, en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Subject: FreeBSD gateway Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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 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 majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message