From owner-freebsd-questions Fri Aug 20 0:41:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (Postfix) with ESMTP id 67923152AA for ; Fri, 20 Aug 1999 00:39:25 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.3/8.9.3/UCB) id KAA56522; Fri, 20 Aug 1999 10:37:51 +0300 (EEST) (envelope-from ru) Date: Fri, 20 Aug 1999 10:37:51 +0300 From: Ruslan Ermilov To: "Arthur H. Johnson II" Cc: FreeBSD Questions Subject: Re: Natd question. Message-ID: <19990820103751.C44737@relay.ucb.crimea.ua> Mail-Followup-To: "Arthur H. Johnson II" , FreeBSD Questions References: <19990819175256.A42142@relay.ucb.crimea.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Arthur H. Johnson II on Thu, Aug 19, 1999 at 11:12:46AM -0400 X-Operating-System: FreeBSD 3.2-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Aug 19, 1999 at 11:12:46AM -0400, Arthur H. Johnson II wrote: > I haven't tried yet. I want to IP Masq through one of my FreeBSD Boxes > (former Slackware boxes ;) The only documentation I have seen so far has > only talked about User PPP which I haven't tried yet. I just want to make > sure it works before I try it. > Basicly, there is a ipfirewall(4), divert(4) sockets interface and the libalias(3) library. Natd(8) implements generic IP aliasing, which could be used with any of the network interfaces installed (Ethernet, SLIP, PPP, TUN, etc). Your kernel should be compiled with IPFIREWALL and IPDIVERT options. You should then configure your ipfw(8) to redirect the traffic through divert(4) socket to a natd(8). User-level ppp(8) has this functionality natively. It uses libalias(3) to implement IP aliasing internally, without need to run natd(8) and ipfirewall(4). So, if you will run user-level ppp(8) (highly recommended), use its native IP aliasing feature. In any other case, use natd(8). Cheers, -- Ruslan Ermilov Sysadmin and DBA of the ru@ucb.crimea.ua United Commercial Bank, ru@FreeBSD.org FreeBSD committer, +380.652.247.647 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message