ftp Redirect problems using RDR

From: Nicolás de Bari Embríz G. R. (nbari_at_unixmexico.com)
Date: 02/24/04

  • Next message: Petri Helenius: "Re: ng_netflow: testers are welcome"
    Date: Mon, 23 Feb 2004 18:46:24 -0600 (CST)
    To: freebsd-isp@freebsd.org
    
    

    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
    -- 
    nbari@unixmexico.com
    key ID 1EF56FDC
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    

  • Next message: Petri Helenius: "Re: ng_netflow: testers are welcome"

    Relevant Pages

    • ftp Redirect problems using RDR
      ... I am having some problems redirecting a ftp using rrd, ... ftp to 148.243.246.2 he gets redirected to server ... but using the IPSEC tunnel. ...
      (freebsd-net)
    • ftp Redirect problems using RDR
      ... I am having some problems redirecting a ftp using rrd, ... ftp to 148.243.246.2 he gets redirected to server ... but using the IPSEC tunnel. ...
      (freebsd-questions)
    • Help with IPFW + NATD + Passive FTP
      ... passive FTP connections through IPFW with NATD enabled. ... $cmd 005 allow all from any to any via dc0 ... # Interface facing Public internet ... # Allow out access to my ISP's Domain name server. ...
      (freebsd-questions)
    • RE: Client Computers cannot upload or download from Remote FTP ser
      ... SBS External NIC - Cannot FTP From this server ... SBS Internal NIC ... FTP server is Checked in Routing and Remote Access - Internet Connection - ...
      (microsoft.public.windows.server.sbs)
    • RE: Client Computers cannot upload or download from Remote FTP ser
      ... Only FTP via the MS DOS FTP Client ... The server that works is a member of the SBS's Domain, BUT as I indicated, ... the router, not the SBS server. ... The client event log has nothing related logged. ...
      (microsoft.public.windows.server.sbs)