1 1.1 christos How to setup FTP proxying using the built in proxy code. 2 1.1 christos ======================================================== 3 1.1 christos 4 1.1 christos NOTE: Currently, the built-in FTP proxy is only available for use with NAT 5 1.1 christos (i.e. only if you're already using "map" rules with ipnat). It does 6 1.1 christos support null-NAT mappings, that is, using the proxy without changing 7 1.1 christos the addresses. 8 1.1 christos 9 1.1 christos Lets assume your network diagram looks something like this: 10 1.1 christos 11 1.1 christos 12 1.1 christos [host A] 13 1.1 christos |a 14 1.1 christos ---+-------------+---------- 15 1.1 christos |b 16 1.1 christos [host B] 17 1.1 christos |c 18 1.1 christos ---+-------------+---------- 19 1.1 christos |d 20 1.1 christos [host C] 21 1.1 christos 22 1.1 christos and IP Filter is running on host B. If you want to proxy FTP from A to C 23 1.1 christos then you would do: 24 1.1 christos 25 1.1 christos map int-c ipaddr-a/32 -> ip-addr-c-net/32 proxy port ftp ftp/tcp 26 1.1 christos 27 1.1 christos int-c = name of "interface c" 28 1.1 christos ipaddr-a = ip# of interface a 29 1.1 christos ipaddr-c-net = another ip# on the C-network (usually not the same as the 30 1.1 christos interface). 31 1.1 christos 32 1.1 christos e.g., if host A was 10.1.1.1, host B had two network interfaces ed0 and vx0 33 1.1 christos which had IP#'s 10.1.1.2 and 203.45.67.89 respectively, and host C was 34 1.1 christos 203.45.67.90, you would do: 35 1.1 christos 36 1.1 christos map vx0 10.1.1.1/32 -> 203.45.67.91/32 proxy port ftp ftp/tcp 37 1.1 christos 38 1.1 christos where: 39 1.1 christos ipaddr-a = 10.1.1.1 40 1.1 christos int-c = vx0 41 1.1 christos ipaddr-c-net = 203.45.67.91 42 1.1 christos 43 1.1 christos The "map" rule for this proxy should precede any other NAT rules you are 44 1.1 christos using. 45 1.1 christos 46