NAT setup


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From - Sun Dec 12 08:16:13 1999
Xref: world comp.unix.sco.misc:111704
Newsgroups: comp.unix.sco.misc
Path: world!newsfeed.mathworks.com!outfeed1.news.cais.net!info.usuhs.mil!uky.edu!xenitec!news
From: Jean-Pierre Radley <jpr@jpr.com>
Subject: Re: NAT for SCO Openserver 5.0.4 and 5.0.5
Resent-From: mmdf@xenitec.on.ca
Submit-To: scomsc@xenitec.on.ca
Content-Type: text/plain; charset=us-ascii
Organization: [resent by] The SCOMSC gateway and Propagation Society
Date: Sun, 12 Dec 1999 05:24:45 GMT Message-ID: <19991212002445.F15877@jpradley.jpr.com>
User-Agent: Mutt/1.1.1i
Mime-Version: 1.0
In-Reply-To: <3852F073.E6FAC6F6@aplawrence.com>; from tony@aplawrence.com on Sun, Dec 12, 1999 at 12:46:43AM +0000 References: <3852F073.E6FAC6F6@aplawrence.com>
Sender: news@xenitec.on.ca (xenitec.on.ca News Administrator)
Precedence: list
Lines: 32
X-Mozilla-Status: 8010
X-Mozilla-Status2: 00000000


Hate these ads?



Tony Lawrence opined (on Sun, Dec 12, 1999 at 12:46:43AM +0000):

| The configuration of NAT is dead simple: here's the entire
| script that I use:

| ipnat -f - <<EOF
| map net1 10.1.36.0/24 -> 0/32
| EOF

| My internal network is 10.1.36.0



I "own" a real Class C network from the old days, so most of my
machines are on 198.207.210.x, but I also set up a Windows box on the
non-routable 192.168.210.x network.














So in my case, I have /etc/rc2.d/S92ipfilter, containing:



        #!/bin/sh
        /usr/local/etc/ipnat -vf /usr/local/etc/ipnatrules
        /etc/ifconfig net0 alias 192.168.210.3



/usr/local/etc/ipnatrules is much like Tony's:



        map du0 192.168.210.0/24 -> 0/32



The ifconfig command aliases the ethernet card in my main machine, which
is at 198.207.210.3, to also be seen as 192.168.210.3, so that the
Windoze machine at 192.168.210.210 has someone to talk to.



-- 
JP














Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


LOD Communications, Inc.

Views for this page
Today This Week This Month This Year  Overall
3727527 2,154

/Bofcusm/180.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - Networking
       - OSR5




Unix/Linux Consultants

Your ad here - $48.00 yearly!

SCO, OpenServer, UnixWare, software, servers, security, networks, installation, administration, troubleshooting, maintenance, Watchguard, firewalls, VPNs, e-mail. Visit us at http://opensystemscomputing.com and www.go2unix.com.


larryi@ccamedical.com SCO OS5, Debian Linux, RedHat Linux, MySQL, Apache, AJAX development using dXport/dL4/Unibasic, Windows Connectivity, Sharing Resouces, Automation, Shell Scripting


http://www.m3ipinc.com Security, firewalls, ids, audits, vulnerability assesments, BS7799, HIPAA, GLB, incident handling



Twitter
  • Nov 18 20:41
    I'll be out all day Wednesday the 19th, hard to reach even by phone. Leave a message and have patience.
  • Nov 18 10:07
    What am I doing? Not doing what I WANT to be doing! Oh, well, in every life a little work must fall..




card_image








Change Congress


Related Posts