Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 1998 12:18:17 -0800
From:      "Michael L. VanLoon -- HeadCandy.com" <michaelv@MindBender.serv.net>
To:        alex@comsys.com
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Network address translation 
Message-ID:  <199801192018.MAA12370@MindBender.serv.net>
In-Reply-To: Your message of Mon, 19 Jan 98 12:04:05 -0700. <34C3A3A5.7C3F@comsys.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

>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...
-----------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801192018.MAA12370>