From owner-freebsd-questions Thu Dec 16 14:14:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (Postfix) with ESMTP id 4BDA2157FC for ; Thu, 16 Dec 1999 14:14:34 -0800 (PST) (envelope-from mw@theatre.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id XAA26610; Thu, 16 Dec 1999 23:11:59 +0100 (CET) Received: by theatre.sax.de (8.9.3/8.6.12-s1) id WAA15841; Thu, 16 Dec 1999 22:59:14 +0100 (CET) Date: Thu, 16 Dec 1999 22:59:14 +0100 From: Martin Welk To: Maxim?? Cc: freebsd-questions@FreeBSD.ORG Subject: Re: About routing withaut static IP. Message-ID: <19991216225913.G13659@theatre.sax.de> References: <000301bf47a1$ff7dbb40$1400000a@BVV.iptelecom.net.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <000301bf47a1$ff7dbb40$1400000a@BVV.iptelecom.net.ua>; from max-2000@mail.ru on Thu, Dec 16, 1999 at 11:44:00AM +0300 Organization: Private UUCP/Usenet site. X-Phone: +49 3731 458867 X-Operating-System: FreeBSD http://www.freebsd.org/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Dec 16, 1999 at 11:44:00AM +0300, Maxim?? wrote: > I have my inside network and host with FreeBSD 3.2. I want to route packet > from inside network to outside and back, but I have dynamic IP from > provider. What program may I use to route or what I put in nutd? You need to set up natd and the ipfirewall code, and an interface based routing entry. For a start, look into the man pages for natd(4), ipfw(4), ipfirewall(4), divert(4) and dummynet(4) - you don't really need what's described within the last one, but it gives some interesting further information. The most important things: - build a custom kernel with IPFIREWALL and IPDIVERT - configure firewall for passing packets to natd - configure natd to listen on your outgoing interface (by interface name, not the address) and give it the ``dynamic'' option - so it looks for you if the address changes - configure the default route - something like ``route add default -interface '' Regards, Martin -- /| /| | /| / ,,You know, there's a lot of opportunities, / |/ | artin |/ |/ elk if you're knowing to take them, you know, there's a lot of opportunities, Freiberg/Saxony, Germany if there aren't you can make them, mw@sax.de / mw@theatre.sax.de make or break them!'' (Tennant/Lowe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message