From owner-freebsd-questions Tue Dec 7 23:27:54 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.tn.home.com (ha1.rdc1.tn.home.com [24.2.7.66]) by hub.freebsd.org (Postfix) with ESMTP id 48E4B14D12 for ; Tue, 7 Dec 1999 23:27:49 -0800 (PST) (envelope-from williamsl@Home.Com) Received: from RELIABLE ([24.4.115.31]) by mail.rdc1.tn.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <19991208072749.LNRN7535.mail.rdc1.tn.home.com@RELIABLE>; Tue, 7 Dec 1999 23:27:49 -0800 Date: Wed, 8 Dec 1999 02:25:51 -0500 From: Ben WIlliams X-Mailer: The Bat! (v1.34a) UNREG / CD5BF9353B3B7091 Reply-To: Ben WIlliams X-Priority: 3 (Normal) Message-ID: <14101.991208@Home.Com> To: "James Webster" Cc: freebsd-questions@freebsd.org Subject: Re[2]: Problems with NATD In-reply-To: <021c01bf4116$6fb21150$41586b83@mins05> References: <021c01bf4116$6fb21150$41586b83@mins05> 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 Wednesday, December 08, 1999 [*NOTE** Please do not send HTML formatted e-mails to lists **NOTE*] I don't know if this is your case but the only time I ever saw this kind of error was when my kernel didn't match my 'world'. I had cvsup'd my kernel sources and built a new kernel which appears to have changed the functions which ipfw talked to .... but I hadn't updated ipfw so it was trying to talk to functions that no longer existed in the kernel. Do you have fresher kernel sources you've built from without making world? HTH, Ben. Tuesday, December 07, 1999, 7:51:28 PM, you wrote: JW> Did some more digging and found a problem, but don't know the JW> solution - /sbin/ipfw add divert natd all from any to any via ex0 JW> 0000 divert 868 ip from any to any via ex0 ip_fw_ctl: invalid JW> command ipfw: setsockopt(IP_FW_ADD): Invalid argument JW> ----- Original Message ----- JW> From: Chameleon JW> To: James Webster ; freebsd-questions@FreeBSD.ORG JW> Sent: Tuesday, December 07, 1999 9:18 AM JW> Subject: Re: Problems with NATD JW> At 09:02 PM 12/6/99 -0800, James Webster wrote: JW> >I'm a first time user of FreeBSD ( my NIC card wouldn't work with netBSD for JW> >some reason). While I'm familiar with networking, and network address JW> >translation, so some reason I can't get it working on FreeBSD. JW> > JW> >I'm setting up a weird testing topology to simulate a slow link (serial), so JW> >I have a box with an Ethernet card (fixed IP 172.30.224.9) and a PPP JW> >(10.0.0.1) connection. I want all connections going to the Ethernet address JW> >to be redirected to the machine on the other side of the PPP (10.0.0.2) JW> >connection. I have everything working but the redirection. JW> > JW> >I have used "/sbin/natd -n ex0 -redirect_port tcp 10.0.0.2:80 80" and "-n JW> >ex0 -f /etc/natd.conf" with "redirect_port tcp 10.0.0.2:80 80" in the conf JW> >file. Neither has worked for me. JW> > JW> >If I've some how misread the man pages, please feel free to let me know what JW> >I'm doing wrong. I'm not on this mailing list, so please include me in any JW> >response. JW> > JW> >Thanks, JW> >James Webster JW> > JW> Been through all this myself last week... JW> in the natd.conf try: JW> redirect_port tcp 10.0.0.2:80 172.30.224.9:80 JW> that should do it... seems to work for me at least. JW> Cheers, Swen JW> Windows 98: n. JW> useless extension to a minor patch release for JW> 32-bit extensions and a graphical shell for a JW> 16-bit patch to an 8-bit operating system JW> originally coded for a 4-bit microprocessor, JW> written by a 2-bit company that can't stand for JW> 1 bit of competition. -- Ben mailto:williamsl@Home.Com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message