<x-flowed>
Hello,

> here again my current config:
> --------------------------------
> bind 21
> 
> [172.18.64.5]
> server 172.18.64.5
> allow-anyremote yes
> allow-blanks yes
> allow-passwdblanks yes
> debug yes
> selectserver yes
> extra-logging yes
> acp     /usr/local/etc/acp.rc
> ccp     /usr/local/etc/ccp.rc
> --------------------------------
> 
> command line:
> ftp.proxy  -l -y -f /usr/local/etc/proxy.conf 172.18.64.5
> 

now that I check this configuration on my system I notice the

   selectserver yes

option behind

   server 172.18.64.5

which means that the configured FTP server is overwritten by the 
selectserver option.  Remove this option and try again, this seems to be 
the solution.

Regards

Wolfgang Zekoll


--general-l------------------------------------
To unsubscribe please visit:
http://www.ftpproxy.org/html/maillinglists.html

</x-flowed>
From [EMAIL PROTECTED] Fri Jul 01 10:01:51 2005
Return-Path: <[EMAIL PROTECTED]>
Received: from mail.compucation.de (mail.compucation.de [213.185.64.44])
                by um1.pce.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP 
id j616tZv23858
                (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified NO)
                for <[EMAIL PROTECTED]>; Fri, 1 Jul 2005 08:55:35 +0200
X-MDSPF-Result: (pass)
Received-SPF: pass (mail.compucation.de: domain of [EMAIL PROTECTED]
                designates 213.165.64.20 as permitted sender)
                x-spf-client=MDaemon.PRO.v8.0.3.R
                receiver=mail.compucation.de
                client-ip=213.165.64.20
                envelope-from=<[EMAIL PROTECTED]>
                helo=mail.gmx.net
Received: from mail.gmx.net (pop.gmx.net [213.165.64.20])
                by compucation.de (mail.compucation.de [213.185.64.44])
                (MDaemon.PRO.v8.0.3.R)
                with ESMTP id md50000059199.msg
                for <[EMAIL PROTECTED]>; Fri, 01 Jul 2005 08:55:54 +0200
Date: Fri, 1 Jul 2005 08:55:02 +0200 (MEST)
From: "Frank Wagner" <[EMAIL PROTECTED]>
To: "general-l List Member"  <[EMAIL PROTECTED]>
MIME-Version: 1.0
Subject: [general-l] config again {01}
X-Priority: 3 (Normal)
X-Authenticated: #16561473
Message-ID: <[EMAIL PROTECTED]>
X-Mailer: WWW-Mail 1.6 (Global Message Exchange)
X-Flags: 0001
Content-Transfer-Encoding: 7bit
X-Lookup-Warning: MAIL lookup on [EMAIL PROTECTED] does not match 213.165.64.20
X-MDRemoteIP: 213.165.64.20
Sender: [EMAIL PROTECTED]
X-Return-Path: [EMAIL PROTECTED]
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
X-MDMailing-List: [EMAIL PROTECTED]
X-MDSend-Notifications-To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
X-MDaemon-Deliver-To: [EMAIL PROTECTED]
X-MDAV-Processed: mail.compucation.de, Fri, 01 Jul 2005 08:55:57 +0200
X-UIDL: I="#!Y3B"!jA3"!['m"!
X-Eudora2Unix: 3905-11-05T08:39:37Z converted

> now that I check this configuration on my system I notice the
>
>    selectserver yes
>
> option behind
>
>   server 172.18.64.5
>
> which means that the configured FTP server is overwritten by the
> selectserver option.  Remove this option and try again, this seems to be
> the solution.

Hi Wolfgang,


thanks, that did the trick. :-)

Now i have another problem.
Using the perl script:

#!/usr/bin/perl -w

$ENV{PATH} = "/bin:/usr/bin:/sbin:/usr/sbin";

if(!defined($ENV{PROXY_USERNAME}) or !defined($ENV{PROXY_PASSWD})) {
        print STDERR "Please set the environment variables PROXY_USERNAME &
PROXY_PASSWD\n";
        exit(1);
}

$PROXY_USERNAME = $ENV{PROXY_USERNAME};
$PROXY_PASSWD   = $ENV{PROXY_PASSWD};

@pass = getpwnam("$PROXY_USERNAME");
if(!defined($pass[0])) {
        print STDERR "Authentication failure...\n";
        exit(1);
}

$passwd = $pass[1];
$salt   = substr($passwd,0,2);
$mypass = crypt($PROXY_PASSWD,$salt);

$LOG = "/tmp/FTP_PROXY_LOG";
open(LKFD,">>$LOG") || die "Cannot open $LOG: $!";
flock(LKFD,2) || die "Cannot lock: $!";
seek(LKFD,0,2);
$date = `date`;
chomp($date);

$ts = time();
$date = `date "+%h-%d-%H:%M:%S"`;
chomp($date);

if($mypass ne $passwd) {
        print STDERR "Authentication failure...\n";
        print LKFD "$ts $date Authentication Failure For User
($PROXY_USERNAME)\n";
        close(LKFD);
        exit(1);
}

print STDERR "Success....\n";
print LKFD "$ts $date Authentication Succeeded For User
($PROXY_USERNAME)\n";
close(LKFD);
exit(0);


I have created an user account "test1" using the password "test1" on the
ftpproxy
host.

I get:

iopuu:/usr/local/etc # telnet 172.18.64.5 21
Trying 172.18.64.5...
Connected to 172.18.64.5.
Escape character is '^]'.
>>> CLI: 220 server ready - login please
220 server ready - login please
USER test1
>>> CLI: 331 password required
331 password required
PASS test1
Connection closed by foreign host.


What can i do?


Frank

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++


--general-l------------------------------------
To unsubscribe please visit:
http://www.ftpproxy.org/html/maillinglists.html

Reply via email to