From owner-freebsd-questions Fri Mar 15 23:37:52 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web20602.mail.yahoo.com (web20602.mail.yahoo.com [216.136.226.158]) by hub.freebsd.org (Postfix) with SMTP id B143537B419 for ; Fri, 15 Mar 2002 23:37:13 -0800 (PST) Message-ID: <20020316073713.24928.qmail@web20602.mail.yahoo.com> Received: from [203.130.207.3] by web20602.mail.yahoo.com via HTTP; Fri, 15 Mar 2002 23:37:13 PST Date: Fri, 15 Mar 2002 23:37:13 -0800 (PST) From: agusri dodi Subject: natd does not work To: freebsd-questions@freebsd.org Cc: questions@FreeBSD.org In-Reply-To: <200203151516.g2FFGCl36506@ct2474442-b.insightbb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 > 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 > /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" > firewall_enable="YES" > firewall_logging="YES" > natd_interface="fxp0" > type="OPEN" > gateway_enable="YES" > > THANK FOR REPLY > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - live college hoops coverage > http://sports.yahoo.com/ > __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message