From owner-freebsd-questions Sun Jan 2 8:52:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gallagher.chicago.il.us (el01-24-131-151-85.ce.mediaone.net [24.131.151.85]) by hub.freebsd.org (Postfix) with ESMTP id D358014A1F for ; Sun, 2 Jan 2000 08:52:22 -0800 (PST) (envelope-from burke@gallagher.chicago.il.us) Received: from fatman2 (fatman2.burke.org [192.168.0.2]) by gallagher.chicago.il.us (8.9.3/8.9.3) with SMTP id KAA06048; Sun, 2 Jan 2000 10:52:12 -0600 (CST) (envelope-from burke@gallagher.chicago.il.us) Message-ID: <002601bf5541$b6384740$0200a8c0@burke.org> From: "Burke Gallagher" To: "Eric Dannewitz" , References: Subject: Re: natd problems Date: Sun, 2 Jan 2000 10:52:10 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have found one error, and two possible typos, and one question about your setup. The error: In the rc.conf file, there is an error in the natd_interface file it should be the name of the interface not the IP address. natd_interface="xl1" The typos (could be in the rc.conf file or the message) ifconfig_lx1 and ifconfig_lx0 should not this be ifconfig_xl0 and ifconfig_xl1 the setup question: your external interface uses UTP cabling. does your internal network use UTP or coax (currently the card is using coax) Hope this helps burke ----- Original Message ----- From: "Eric Dannewitz" To: Sent: Sunday, January 02, 2000 8:34 AM Subject: natd problems > Ok, well, my Linux box that was doing NAT decided to kill itself for the > next > century. So, I decided I'd start the new year off right and jump into > FreeBSD > 3.2. > > Now, I have compiled the kernel to support IPFIREWALL and IPDIVERT. > my rc.firewall file looks like: > /sbin/ipfw -f flush > /sbin/ipfw add divert natd all from any to any via xl1 > /sbin/ipfw add pass all from any to any > > I added > natd 8668/divert > > to my /etc/services > > and my rc.conf file has the following: > > ifconfig_lo0="inet 127.0.0.1" > ifconfig_lx1="inet 216.38.135.133 netmask 255.255.255.240" ^ is this a type ifconfig_lx1, should be ifconfig_xl1 ??? > defaultrouter="216.38.135.129" > network_interfaces="xl1 xl0 lo0" > ifconfig_lx0="inet 192.168.1.1 netmask 255.255.255.0" ^ is this a type ifconfig_lx0, should be ifconfig_xl0 ??? > firewall_enable="YES" > firewall_script="/etc/rc.firewall" > gateway_enable="YES" > natd_program="/sbin/natd" > natd_enable="YES" > natd_interface="216.38.135.133" ^ ERROR HERE ====+ shoudl be natd_interface="lx1" > natd_flags="" # Additional flags for natd. > tcp_extensions="NO" > > And finally my network cards are: > routy# ifconfig -a > xl0: flags=8843 mtu 1500 > inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 > ether 00:10:4b:31:2d:60 > media: 10base2/BNC does the internal network use UTP (10BaseT) or coax (10Base2) ???? > supported media: 10base2/BNC 10base5/AUI 10baseT/UTP > 10baseT/UTP 10baseT/UTP > xl1: flags=8843 mtu 1500 > inet 216.38.135.133 netmask 0xfffffff0 broadcast 216.38.135.143 > ether 00:10:5a:1e:3c:64 > media: 10baseT/UTP > supported media: autoselect 100baseTX 100baseTX > 100baseTX 10baseT/UTP 10baseT/UTP > 10baseT/UTP > tun0: flags=8010 mtu 1500 > sl0: flags=c010 mtu 552 > ppp0: flags=8010 mtu 1500 > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > > Any ideas? The config's external interface card works, but the internal > one is all messed up............ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message