From owner-freebsd-isp Mon Jan 19 23:24:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA11124 for freebsd-isp-outgoing; Mon, 19 Jan 1998 23:24:19 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from shell6.ba.best.com (jkb@shell6.ba.best.com [206.184.139.137]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA11113 for ; Mon, 19 Jan 1998 23:24:15 -0800 (PST) (envelope-from jkb@best.com) Received: from localhost (jkb@localhost) by shell6.ba.best.com (8.8.8/8.8.BEST) with SMTP id XAA26114; Mon, 19 Jan 1998 23:24:05 -0800 (PST) X-Authentication-Warning: shell6.ba.best.com: jkb owned process doing -bs Date: Mon, 19 Jan 1998 23:24:05 -0800 (PST) From: Jan Koum X-Sender: jkb@shell6.ba.best.com To: "Michael L. VanLoon -- HeadCandy.com" cc: alex@comsys.com, freebsd-isp@FreeBSD.ORG Subject: Re: Network address translation In-Reply-To: <199801192018.MAA12370@MindBender.serv.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org And if you are using a dial up connection, you can use ppp with "-alias" switch to do IP aliasing. 'man ppp' for more info. -- Yan On Mon, 19 Jan 1998, Michael L. VanLoon -- HeadCandy.com wrote: > >>We need to setup a classroom at our ISP here in Carbondale. >>We'd like to use 10. addresses for the classroom systems. Any >>pointer to success with some version of network address translation, >>would be helpful. > >As someone else said, "man natd", or in NetBSD "man ipnat". Also, >"man ipf" for a more general discussion of ip filters (in NetBSD >anyway). > >FYI, I have a 24-bit address space, 198.232.197/24. I have configured >my NetBSD box to translate all packets going out from all hosts with >the upper bit set in my address space (i.e. 198.232.197.128 - >198.232.197.255), so they appear to come from my ISP-connected >address. This is what appears in my ipnat.conf: > >map ppp0 198.232.197.128/25 -> 205.153.153.98/32 portmap tcp/udp 1025:65000 >map ppp0 198.232.197.128/25 -> 205.153.153.98/32 > >Note that the code in the ip filter stuff has diverged somewhat >between FreeBSD and NetBSD, so this syntax may not be exactly correct >for the FreeBSD stuff, but it should give you an idea how it's done. > >----------------------------------------------------------------------------- > Michael L. VanLoon michaelv@MindBender.serv.net > Contract software development for Windows NT, Windows 95 and Unix. > Windows NT and Unix server development in C++ and C. > > --< Free your mind and your machine -- NetBSD free un*x >-- > NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3, > Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX, MVME68k, arm32... > NetBSD ports in progress: PICA, others... >----------------------------------------------------------------------------- >