From owner-freebsd-questions Sat Mar 16 0:19: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from services.webwarrior.net (overlord-host99.dsl.visi.com [209.98.86.99]) by hub.freebsd.org (Postfix) with ESMTP id DED0937B417; Sat, 16 Mar 2002 00:18:45 -0800 (PST) Received: from twincat.vladsempire.net (hutch-662.hutchtel.net [206.10.68.190]) by services.webwarrior.net (Postfix) with ESMTP id 4DCEF3ED; Sat, 16 Mar 2002 02:18:44 -0600 (CST) Received: by twincat.vladsempire.net (Postfix, from userid 1001) id 554E4389B; Sat, 16 Mar 2002 02:19:30 +0000 (GMT) Date: Sat, 16 Mar 2002 02:19:30 +0000 From: Josh Paetzel To: agusri dodi Cc: freebsd-questions@FreeBSD.ORG, questions@FreeBSD.ORG Subject: Re: natd does not work Message-ID: <20020316021930.C290@twincat.vladsempire.net> Mail-Followup-To: agusri dodi , freebsd-questions@FreeBSD.ORG, questions@FreeBSD.ORG References: <200203151516.g2FFGCl36506@ct2474442-b.insightbb.com> <20020316073713.24928.qmail@web20602.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020316073713.24928.qmail@web20602.mail.yahoo.com>; from dodix2000@yahoo.com on Fri, Mar 15, 2002 at 11:37:13PM -0800 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 On Fri, Mar 15, 2002 at 11:37:13PM -0800, agusri dodi wrote: > > > > I have been setting up FreeBSD Box as a gateway to > > the > > internet. my lan card is intel (fxp0),activating ppp > > with Kppp from KDE.I have turned on the IPFIREWALL > > and > > IPDIVERT within the kernel.Conection between > > server(BSD) and the other client is OK (Using ping > > command). > > > > But the natd doesn't work(PC using unregistered ip > > can't connect to the internet) > > > > what should I do ? > > > > here is the content of > > my configuration files: > > > > content of rc.firewall: > > /sbin/ipfw -f flush > > /sbin/ipfw add divert natd all from any to any > > > > via fxp0 you use the external interface here, which would be tun0 if kppp is anything like userland ppp. > > /sbin/ipfw add pass all from any to any > > > > > > content of rc.conf : > > hostname="server.silicom.net" > > sendmail_enable="NO" > > > > moused_port="/dev/cuaa0" > > moused_enable="YES" > > > > network_interfaces="fxp0 lo0 " > > ifconfig_fxp0="inet 192.168.1.1 netmask > > 255.255.255.0 > > " > > ifconfig_lo0="inet 127.0.0.1" > > > > natd_enable="YES" > > interface_out="fxp0" I don't think that interface_out is a valid rc.conf line. > > firewall_enable="YES" > > firewall_logging="YES" > > natd_interface="fxp0" Once again, this should be tun0 > > type="OPEN" > > gateway_enable="YES" > > > > THANK FOR REPLY Let me know if you are still having problems. Josh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message