Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2004 18:46:07 -0600 (CST)
From:      =?iso-8859-1?Q?Nicol=E1s_de_Bari_Embr=EDz_G._R.?= <nbari@unixmexico.com>
To:        freebsd-net@freebsd.org
Subject:   ftp Redirect problems using RDR
Message-ID:  <1480.200.57.40.53.1077583567.squirrel@mail.unixmexico.com>

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

Hi all.

I am having some problems redirecting a ftp using rrd, i am using ipfilter
and ipnat

my ipnat.rules on Server 1 file has some thing like:

map fxp0 192.168.50.1/24 -> 148.243.246.2/32 portmap tcp/udp auto
map fxp0 192.168.50.1/24 -> 148.243.246.2/32
rdr fxp0 148.243.246.2/32 port 21 -> 192.168.60.1/32 port 21024

My net is something like:


  server 1                              server 2
148.243.246.2                         200.50.59.30
  ---------                         ---------------------------
 | FreBSD  | <----IPSEC tunnel---> |  FTP (pureftp port 11021) |
  ---------                         ---------------------------
 192.168.50.1                        192.168.60.1
     |                                     |
     |                                     |
   -----                                 -----
  | NAT |                               | NAT |
   -----                                 -----
     |                                     |
192.168.50.0/24                    192.168.60.0/24



I want to redirect ftp connections on server 1 (port 21) to server 2 (port
11021) so when a user, ftp to 148.243.246.2 he gets redirected to server
200.50.59.30, but using the IPSEC tunnel.

ftp 148.243.246.2 port 21 ----> redirect to 192.168.60.1 port 11021

right now the IPSEC tunnel works fine i can ping an see machines from
192.168.50.0/24 to 192.168.60.0/24

Any idea on how could i fix this ?

both servers are using FreeBSD 4.9-STABLE





-- 
nbari@unixmexico.com
key ID 1EF56FDC



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