From owner-freebsd-isp Mon Jan 19 12:19:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA13408 for freebsd-isp-outgoing; Mon, 19 Jan 1998 12:19:08 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from MindBender.serv.net (mindbender.serv.net [205.153.153.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA13399 for ; Mon, 19 Jan 1998 12:18:57 -0800 (PST) (envelope-from michaelv@MindBender.serv.net) Received: from localhost.HeadCandy.com (localhost.HeadCandy.com [127.0.0.1]) by MindBender.serv.net (8.8.8/8.7.3) with SMTP id MAA12370; Mon, 19 Jan 1998 12:18:19 -0800 (PST) Message-Id: <199801192018.MAA12370@MindBender.serv.net> X-Authentication-Warning: MindBender.serv.net: localhost.HeadCandy.com [127.0.0.1] didn't use HELO protocol To: alex@comsys.com cc: freebsd-isp@FreeBSD.ORG Subject: Re: Network address translation In-reply-to: Your message of Mon, 19 Jan 98 12:04:05 -0700. <34C3A3A5.7C3F@comsys.com> Date: Mon, 19 Jan 1998 12:18:17 -0800 From: "Michael L. VanLoon -- HeadCandy.com" Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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... -----------------------------------------------------------------------------