From owner-freebsd-questions Wed Jul 19 14:33:30 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wormhole.bluestar.net (wormhole.bluestar.net [208.53.1.61]) by hub.freebsd.org (Postfix) with ESMTP id 160DE37BED2 for ; Wed, 19 Jul 2000 14:33:26 -0700 (PDT) (envelope-from drew@planetwe.com) Received: from planetwe.com (admin.planetwe.com [64.182.69.146]) by wormhole.bluestar.net (8.10.1/8.10.1) with ESMTP id e6JLX4720194; Wed, 19 Jul 2000 16:33:04 -0500 (CDT) Message-ID: <39761EB5.8156CEA8@planetwe.com> Date: Wed, 19 Jul 2000 16:33:41 -0500 From: Drew Sanford X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Kuzak Cc: freebsd-questions@FreeBSD.ORG Subject: Re: natd configuratino with PPPoE References: <0FXY007JNP8BZX@mta6.snfc21.pbi.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've just gotten a major lesson in doing this. Basicly, what I've found out is, you are just as well of to use the -nat switch on PPP. You'll have to make sure that your MTU's are set properly on all NICs (see the handbook), but other than that it's straight forward. You can use nat port tcp internal.host:ftp ftp to forward ftp'ing to an internal host, same goes for web, and other ports you want forwarded to specific machines. Kuzak wrote: > > The layout... I have a FreeBSD gateway here that has 2 NIC's and connects to > the internet via a DSL modem connected to one of the NIC's. That NIC is > dc0 and > is assigned ip 192.168.0.104. The other NIC ( fxp0 ) is connected to the > lan and > assigned ip 192.168.0.3. On the lan there are many other computers using > ip's > ranging from 192.168.0.10-192.168.0.100. > > The objective: To redirect traffic from the internet, directed at the > dynamic ip of the > DSL connection to a server behind the FreeBSD gateway, say at ip 192.168.0.50. > I don't need to redirect all traffic, the ultimate goal is to redirect pptp > connections > to another server, but if someone could explain to me how to do this with, > say ftp > traffic ( port 21 ), I think I could probably extrapolate from there. I'm > guessing that > someone out there knows how to redirect the traffic from a DSL connction to > another > computer with a 192.168.0.x address. > > Now, I've tred setting this up following some tutorials and walkthroughs > with natd, and > I was able to redirect ftp traffic to the server over the lan, but I can't > get anything to work > over the internet connection when I connect to the real ip.. > > I don't need and type of firewall or anything, just the basic open config > lines that will > allow this all to work.. I would greatly appriciate it if someone could > explain to me how > to do this.. What I think I need are the lines to put into the firewall > config file ( rc.firewall ) > and the natd commands to run. I have already compiled the options into my > kernel that > enable natd to work... so if someone could please help be out, that would > be great. > > Please CC a copy of emails to kuzak@kuzak.net as I don't subscribe to the > list. > Thanks a lot > -Aric Kinney > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Drew Sanford Systems Administrator Planetwe.com Email: drew@planetwe.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message