From owner-freebsd-questions Thu Jan 21 00:53:52 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA05765 for freebsd-questions-outgoing; Thu, 21 Jan 1999 00:53:52 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from online.dct.com (online.dct.com [204.29.185.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA05760 for ; Thu, 21 Jan 1999 00:53:51 -0800 (PST) (envelope-from markm@online.dct.com) Received: (from markm@localhost) by online.dct.com (8.9.0.Beta5/8.8.8) id CAA12409 for freebsd-questions@freebsd.org; Thu, 21 Jan 1999 02:53:43 -0600 (CST) From: Mark Message-Id: <199901210853.CAA12409@online.dct.com> Subject: problems with natd To: freebsd-questions@FreeBSD.ORG Date: Thu, 21 Jan 1999 02:53:43 -0600 (CST) X-Mailer: ELM [version 2.4ME+ PL48 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hey all -- I've been trying to get natd working now for the last two days, with absolutely NO success. I've got a few printouts here, from the FreeBSD Diary, and other places (including the natd man page), but nothings seems to work. Here's my setup: kernel has IPFIREWALL and IPDIVERT enabled. in rc.conf, firewall_enable is set to YES, as well as gateway_enable /etc/rc.firewall: ----------------- /sbin/ipfw -f flush /sbin/ipfw add divert natd all from any to any via xl0 /sbin/ipfw add pass all from any to any since my box has two NICs, xl0 and xl1, my cable modem (using dhcp) is on xl0. my internal network is on xl1. in rc.local, I have these lines: --------------------------------------------------------------------- dhclient xl0 ifconfig xl1 192.168.1.1 255.255.255.0 up natd -log -dynamic -interface xl0 so pretty much according to everything I've read, I should be set to go. when the machine comes up, dhclient gets run, and the external network gets hooked up. then the internal one goes up, and natd is run with the above flags. Except that when I then log in, I can't access anything. my other machine on the network is unreachable, and trying anything on the net is a failure. Yet, I can take out the firellwall and gateway stuff, not start natd, and change the kernel back to one without IPDIVERT and such, and my networks run great. What exactly am I missing? I've been banging my head on the wall for the last 2 days... Thanks, -- Mark Maurer markm@dct.com Programmer, DCT Technologies mwmaurer@mtu.edu Senior, Michigan Technological University "How could this be a problem in a country where we have Intel and Microsoft?" -- Al Gore, on the Y2K bug. Quoted Vanity Fair, Jan 1999 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message