From owner-freebsd-questions  Wed Oct 20 18: 3:30 1999
Delivered-To: freebsd-questions@freebsd.org
Received: from breton.uol.com.br (breton.uol.com.br [200.230.198.74])
	by hub.freebsd.org (Postfix) with ESMTP
	id 8B8D214E0F; Wed, 20 Oct 1999 18:03:04 -0700 (PDT)
	(envelope-from julianherrera@uol.com.br)
Received: from etherial (200-191-20-131-as.acessonet.com.br [200.191.20.131])
	by breton.uol.com.br (8.9.1/8.9.1) with SMTP id XAA17798;
	Wed, 20 Oct 1999 23:02:37 -0200 (BRST)
Message-ID: <008401bf1b5f$ceb9f640$8314bfc8@etherial>
From: "Julian Diego Herrera Braga" <julianherrera@uol.com.br>
To: <freebsd-ipfw@FreeBSD.ORG>
Cc: <freebsd-questions@FreeBSD.ORG>
Subject: En: What about port redirection with ip aliasing ?
Date: Wed, 20 Oct 1999 23:01:20 -0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

Hello...

One day my computer was without available ISA slots. I installed FreeBSD but
the damned Winmodem doesn't work, so I had a idea to resurrect the other
pentium 100 computer to use its free slots to install an old 14kbps modem.
FreeBSD was also loaded in this computer as a gateway to the other computer
without modem and the internet by ip aliasing (ppp -alias). Since the
gateway computer doesn't have better space (170mb) and power to install some
other programs, I would like to use it only for a gateway. This is the small
LAN :

------------------         ----------------------
| ether.nostromo | serial  | ppprouter.nostromo | 14kbps  ------------
|   192.168.1.2  |---------|     192.168.1.1    |---------| Internet |
------------------ cable   ---------------------- modem   ------------
P2 450Mhz                      Old Pentium 100 Mhz
FreeBSD 3.2                    FreeBSD 3.1
(ppp nullmodem)                (ppp -alias isp)
                               (ppp nullmodem)
                               natd [options]

My problems appeared when I tried to access the client computer from
internet through the gateway. Such connection always finished on the
gateway computer. Finally, what I want to know is how can I get all
the gateway ports from telnetd, ftpd, httpd etc. redirected to the
respective client ports. Basically, is something like to make the
gateway computer ports invisible to the outside computers, so any
connection addressed to its IP will finish into the client computer
(ether.nostromo). Is this possible ? How ? Thank you for the attention.

P.S.: I've used "natd -port_redirect 192.168.1.1:ftp ftp" and nothing has
changed. I tried some other options, but I am not sure what is the best
one. Is there any known natd guide on the internet for FreeBSD ?

Regards,
Julian Herrera mailto:julianherrera@uol.com.br






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message