[DeleGate-En] Re: Switching ftp-servers based on IP-adresses
>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 (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:
9 9 Yutaka Sato <firstname.lastname@example.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