Article delegate-en/3939 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3925@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Switching ftp-servers based on IP-adresses
26 Mar 2008 21:03:59 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project



Hi,

>I am quite new to delegate and I am just playing around with it to find a solution for a proxy service that handles special requirements.
>I am searching for a proxy service that can forward ftp requests based on the client IP-Adress. I tried the following:
>
>./delgated -P21 SERVER=ftp MOUNT="/* ftp://192.168.145.93/*" -v
>
>and it works fine in my enviroment.  Here is an excerpt of the logging from the console of my linux box:
>
>ftp_conndata: connected 192.168.152.151:36784->192.168.145.93/192.168.145.93:10043 [18](0.0)
>
>Now the question: is it possible to forward ftp connections based on the client ip to certan servers? For example:
>
>The first line represents the working one:
>
>client 192.168.152.151   to   192.168.145.93
>client 192.168.152.152   to   192.168.145.92
>client 192.168.152.153   to   192.168.145.92

It can be like this:

  SERVER=ftp MOUNT="/* ftp://192.168.145.93/* from=192.168.152.151"
  SERVER=ftp MOUNT="/* ftp://192.168.145.92/* from=192.168.162.[152-153]"

or more efficiently like this:

  SERVER="ftp://192.168.145.93:-:{192.168.152.151}"
  SERVER="ftp://192.168.145.92:-:{192.168.152.[152-153]}"

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V