[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NAT



Hello list

> INTERNET --- Debian Router --- FTP-Server

I would solve it this way:

      Internet <- 1.1.1.1@router@192.168.100.1 ---- 192.168.100.2@ftp
      					       ---- 192.168.100.x@rest

Then everything from the internal network goes to the default gateway
"router". The router then sends it with it's own IP to the internet.
Returning packages going to the router who translate it according to the
remembered Port numbers back to it's connection with one of the internal
hosts.
If you use ftp from outside then you just have to do portmapping, i.e.
say: Router: all connections on port 21 are for 192.168.100.2.
No need for any more real IP addressses. Note, that you probably have to
use the masq_ftp.o module (or something that way) because ftp is a bit 
tricky since it has commands on port 21 and data on port 20.

> Michael
bye,

 -christian-

-- 
Linux - the choice of the GNU generation.          Join the Debian Project 
                                                     http://www.debian.org 
Christian Hammers * Oberer Heidweg 35 * D-52477 Alsdorf * Tel: 02404-25624
50 3C 52 26 3E 52 E7 20  D2 A1 F5 16 C4 C9 D4 D3  1024/925BCB55 1997/11/01


Reply to: