<x-flowed>
Please take me off this list.
>From: BARBIER GREGOIRE <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "general-l List Member" <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: [general-l] -ERR: received signal #13 {02}
>Date: Wed, 11 Dec 2002 10:10:30 +0100
>
>De : Miguel A. Argaqaraz2 . [mailto:[EMAIL PROTECTED]
> > I think is a Bug, because I only get this error in only one case.
> >
> > What I have different from each network/configuration is that
> > this special
> > case has a Firewall-1 as a firewall. When he tries to connect
> > I see "-ERR: received signal #13" in the log, and the
> > connection is refused.
> >
> > I have tried the ftp.proxy with an public ip address in the
> > client host,
> > and trought a linux doing masquerading, using an active ftp
> > session, and everything
> > works flawlesly.
> >
> > What else do you need in order me to help you?
> >
> > Regards,
> > Miguel.
>
>So, I strongly agree with you: it's a bug.
>In fact it's both a ftp.proxy and a firewall-1 bug.
>Firewall-1 can't do statefull ftp firewalling with ftp queries or replies
>that cross the ip packets bounds (for instance, if the ftp client says
>"STOR
>" in a packet and "/tmp/foo.bar" in the next one), in that case Firewall-1
>closes the connection in a way that send SIGPIPEs (#13) to ftp.proxy.
>Ftp.proxy send some ftp queries and replies across ip packets bounds,
>sending the while query but the final end of line sequence ("\r\n") in a
>packet, and the eol sequence in the next packet.
>As far as I know, this bug may not appear even with firewall-1, depending
>on
>the operating system, of its ip options and of routers between the
>ftp.proxy
>and the firewall-1 machines, since ip packets can be defragmented in a way
>that fix the bug.
>
>This patch should help you:
>
>diff -Nur ../ftpproxy-1.1.5/src/ftp.c ./src/ftp.c
>--- ../ftpproxy-1.1.5/src/ftp.c Mon Feb 4 18:11:21 2002
>+++ ./src/ftp.c Tue Aug 21 10:21:00 2001
>@@ -477,11 +477,20 @@
>
> int cfputs(ftp_t *x, char *line)
> {
>+ char *buf;
>+ int n;
>+
> if (debug)
> fprintf (stderr, ">>> CLI: %s\n", line);
>-
>- write(1, line, strlen(line));
>- write(1, "\r\n", 2);
>+
>+ n = strlen(line);
>+ buf = malloc(n+3);
>+ strcpy(buf, line);
>+ strcat(buf, "\r\n");
>+ write(1, buf, n+2); /* call write() once only, because some
>firewalls
>+ don't allow queries to continue accross
>network
>+ packets */
>+ free(buf);
>
> return (0);
> }
>
>
>Please tell us if ftp.proxy still doesn't work properly with this patch.
>
>--
>Greg.
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
</x-flowed>
From [EMAIL PROTECTED] Fri Jan 03 16:58:37 2003
X-Persona: <ftp.pproxy>
Return-path: <[EMAIL PROTECTED]>
Received: from atosorigin.com ((mx1.be.atosorigin.com) [195.95.13.150])
by compucation.de ([213.185.64.44])
with SMTP (MDaemon.PRO.v6.5.2.R)
for <[email protected]>; Fri, 03 Jan 2003 16:57:43 +0100
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
Content-Class: urn:content-classes:message
MIME-Version: 1.0
Subject: [general-l] Compilation problem on Solaris 8 with GCC 2.95.3 {01}
Date: Fri, 3 Jan 2003 16:57:36 +0100
Message-ID: <[EMAIL PROTECTED]>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Compilation problem on Solaris 8 with GCC 2.95.3
thread-index: AcKzQNVh9OBMrF1fSq2vx652etBuKg==
From: "Paquet, Gilles" <[EMAIL PROTECTED]>
To: "ftp.proxy" <[email protected]>
X-OriginalArrivalTime: 03 Jan 2003 15:51:27.0437 (UTC)
FILETIME=[F9C257D0:01C2B33F]
X-Lookup-Warning: MAIL lookup on [EMAIL PROTECTED] does not match 195.95.13.150
X-MDRcpt-To: [EMAIL PROTECTED]
X-MDRemoteIP: 195.95.13.150
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-Eudora2Unix: 3905-11-05T08:39:35Z converted
I've a compilation error on a solaris 8 with gcc 2.95.3 (with libgcc 3.0) . Do
you have an idea of the problem ?
I think it's related to a shared library, but I can't figure which one.
___________________________________________________________
cd src; make ftp.proxy
gcc -O2 -Wall -ggdb -pedantic -c main.c
main.c:79: warning: third argument of `main' is deprecated
gcc -O2 -Wall -ggdb -pedantic -c ftp.c
ftp.c: In function `getc_fd':
ftp.c:386: warning: `wrote' might be used uninitialized in this function
ftp.c: In function `dopasv':
ftp.c:745: warning: subscript has type `char'
ftp.c:748: warning: subscript has type `char'
ftp.c:750: warning: subscript has type `char'
ftp.c:759: warning: subscript has type `char'
ftp.c: In function `setvar':
ftp.c:872: warning: implicit declaration of function `setenv'
ftp.c: In function `run_ccp':
ftp.c:1214: warning: subscript has type `char'
gcc -O2 -Wall -ggdb -pedantic -c daemon.c
daemon.c: In function `acceptloop':
daemon.c:228: warning: unsigned int format, long unsigned int arg (arg 3)
daemon.c:233: warning: unsigned int format, long unsigned int arg (arg 3)
daemon.c:244: warning: unsigned int format, long unsigned int arg (arg 3)
daemon.c:263: warning: unsigned int format, long unsigned int arg (arg 3)
gcc -O2 -Wall -ggdb -pedantic -c ip-lib.c
ip-lib.c: In function `getportnum':
ip-lib.c:128: warning: subscript has type `char'
gcc -O2 -Wall -ggdb -pedantic -c lib.c
lib.c: In function `strlwr':
lib.c:148: warning: pointer targets in assignment differ in signedness
lib.c: In function `strupr':
lib.c:164: warning: pointer targets in assignment differ in signedness
lib.c: In function `noctrl':
lib.c:187: warning: pointer targets in assignment differ in signedness
lib.c:190: warning: pointer targets in passing arg 1 of `strlen' differ in
signedness
lib.c:198: warning: pointer targets in return differ in signedness
lib.c: In function `get_word':
lib.c:211: warning: pointer targets in assignment differ in signedness
gcc -o ftp.proxy main.o ftp.o daemon.o ip-lib.o lib.o
Undefined first referenced
symbol in file
socket ip-lib.o
getpeername ftp.o
setenv ftp.o
gethostbyname ftp.o
accept ftp.o
bind ip-lib.o
setsockopt daemon.o
getservbyname ip-lib.o
gethostbyaddr ftp.o
inet_ntoa ftp.o
getsockname ftp.o
listen ip-lib.o
connect ip-lib.o
ld: fatal: Symbol referencing errors. No output written to ftp.proxy
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `ftp.proxy'
Current working directory /root/install/Ftp.proxy/ftpproxy-1.1.6.beta5/src
*** Error code 1
make: Fatal error: Command failed for target `ftp.proxy'
_____________________________________________________
Thank you for you help.
Gilles PAQUET
Who reads .sigs these days anyway?
****************************************************************************
Disclaimer:
This electronic transmission and any files attached to it are strictly
confidential and intended solely for the addressee. If you are not
the intended addressee, you must not disclose, copy or take any
action in reliance of this transmission. If you have received this
transmission in error, please notify the sender by return and delete
the transmission. Although the sender endeavors to maintain a
computer virus free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages
resulting from any virus transmitted.
Thank You.
****************************************************************************