From owner-freebsd-questions Mon Oct 9 11:46:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id 802D137B503 for ; Mon, 9 Oct 2000 11:46:06 -0700 (PDT) Received: (qmail 12104 invoked from network); 9 Oct 2000 18:46:03 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by karon.sto.dynas.se with SMTP; 9 Oct 2000 18:46:03 -0000 Received: (qmail 22057 invoked from network); 9 Oct 2000 18:46:16 -0000 Received: from explorer.rsa.com (10.81.217.59) by spirit.dynas.se with SMTP; 9 Oct 2000 18:46:16 -0000 Received: (from mikko@localhost) by explorer.rsa.com (8.11.0/8.11.0) id e99Ijq356129; Mon, 9 Oct 2000 11:45:52 -0700 (PDT) (envelope-from mikko) Date: Mon, 9 Oct 2000 11:45:52 -0700 (PDT) From: Mikko Tyolajarvi Message-Id: <200010091845.e99Ijq356129@explorer.rsa.com> To: rakesh@cell-works.com Cc: freebsd-questions@freebsd.org Subject: Re: Setting FreeBSD as Gateway! Newsgroups: local.freebsd-questions References: X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In local.freebsd-questions you write: >This is a multi-part message in MIME format. >--------------AAF5793FE163632A6943EEAD >Content-Type: text/plain; charset=us-ascii >Content-Transfer-Encoding: 7bit >Hello Everyone, >I am a newbie with FreeBSD and I am trying to set up my FreeBSD machine >as Gateway. I can ping from FreeBSD machine to my windows 98 machine >and vice versa but I cannot get my windows 98 machine to get on the >internet. I can telnet from my windows 98 machine to my freeBSD >machine. Although I get this two lines at the end of the dmesg. >"IP packer filtering initialized, divert disabled, rule-based >forwarding disabled, logging disabled, >ip_fw_ctl: invalid command" "divert disabled" means "natd" won't work. Have you recompiled your kernel with IPFIREWALL and IPDIVERT as described in the man page for natd? If not, do so. The handbook describes how to build a custom kernel. Then you need to teach win98 to use your FreeBSD box as a gateway. /Mikko [...] >--------------AAF5793FE163632A6943EEAD >Content-Type: text/plain; charset=us-ascii; > name="rc_conf.txt" [...] >### -- Basic Network Options: ### >hostname="owml1.md.home.com" >nisdomainname="NO" >firewall_enable="YES" >firewall_script="/etc/rc.firewall" >firewall_type="open" >firewall_quite="NO" "quite" ? Normally known as "quiet" ... No big deal. >natd_program="/sbin/natd" >natd_enable="YES" >natd_interface="ed1" >natd_flags="-f /etc/natd.conf" >tcp_extensions="YES" May cause some problems later on. >network_interfaces="lo0" # List of network interfaces (lo0 is loopback) >network_interfaces="lo0 ed1 fxp0" >ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration >ifconfig_ed1="DHCP" >ifconfig_fxp0="inet 192.168.1.1 netmask 255.255.255.0" >nfs_server_enable="YES" >nfs_client_enable="YES" What happened to ed0 ? >## Network routing options: #### >gateway_enable="YES" >router_enable="YES" No need for router. Set to NO. [...] -- Mikko Työläjärvi_______________________________________mikko@rsasecurity.com RSA Security To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message