From owner-freebsd-questions Wed Oct 20 18:15:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from jaguar.ir.miami.edu (jaguar.ir.miami.edu [129.171.32.10]) by hub.freebsd.org (Postfix) with ESMTP id C039514CAC; Wed, 20 Oct 1999 18:15:16 -0700 (PDT) (envelope-from marcus@miami.edu) Received: from jaguar.ir.miami.edu ("port 1098"@jaguar.ir.miami.edu [129.171.32.10]) by jaguar.ir.miami.edu (PMDF V5.2-32 #40232) with ESMTP id <0FJX00C7PI5FKH@jaguar.ir.miami.edu>; Wed, 20 Oct 1999 21:15:15 -0400 (EDT) Date: Wed, 20 Oct 1999 21:15:15 -0400 (EDT) From: "Joe \"Marcus\" Clarke" Subject: Re: En: What about port redirection with ip aliasing ? In-reply-to: <008401bf1b5f$ceb9f640$8314bfc8@etherial> To: Julian Diego Herrera Braga Cc: freebsd-ipfw@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Check out the ppp manpage. The nat port command (or alias port) should do what you want. To quote: nat port proto targetIP:targetPort[-targetPort] aliasPort[-aliasPort] [remoteIP:remotePort[-remotePort]] This command causes incoming proto connections to aliasPort to be redirected to targetPort on targetIP. proto is either ``tcp'' or ``udp''. Joe Clarke p.s. this assumes a current version of ppp from http://www.freebsd.org/~brian On Wed, 20 Oct 1999, Julian Diego Herrera Braga wrote: > 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 > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message