Article delegate-en/2314 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:<_A2120@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: FTP TLS Proxy Problem
28 Jun 2003 07:44:16 GMT feedback@delegate.org (Yutaka Sato)


Hi,

I'm sorry that I've not made any response about the problem.

On 02/07/03(14:15) you "Bryan Dees" <pjaeabdyi-re5dixw3ohtr.ml@ml.delegate.org> wrote
in <_A2120@delegate-en.ML_>
 |The target server is a FTP server using TLS/SSL on port 21. The
 |application is a sterling application called: Connect:Enterprise
 |(www.stercomm.com <http://www.stercomm.com/> ). I need to proxy FTPS due
 |to network address translation issues which cause the ftp-data packets
 |to be returned using the inside address instead of the NAT address. I
 |was hoping to use DeleGate for this purpose.

The server of ftp.delegate.org is going to be moved behind NAT and
I encountered the problem using non-standard FTP port ;-)
So I made the modification like enclosed patch.  Applying it to
DeleGate, You can specify the global IP address xx.xx.xx.xx of FTP
server as this:

  SRCIF="xx.xx.xx.xx:*:tcpbound"

(The patch is for <URL:ftp://ftp.delegate.org/pub/DeleGate/delegate8.6.0-snap03062408.tar.gz>)

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

*** ../dist/delegate8.6.0-snap03062408/src/inets.c	Sun Jun 15 19:25:54 2003
--- ./inets.c	Sat Jun 28 16:32:09 2003
***************
*** 2648,2653 ****
--- 2648,2665 ----
  BOUND:
  	addrlen = sizeof(VSAddr);
  	getsockname(dsock,(SAP)&svdata,&addrlen);
+ 
+ 	{	char *claddr,gwhost[256];
+ 		int clport,gwport;
+  
+ 		claddr = VSA_ntoa(&svpeer);
+ 		clport = VSA_port(&svpeer);
+ 		if( SRCIFfor(Conn,"tcpbound",claddr,clport,gwhost,&gwport) ){
+ 			VSA_prftp(&svsock,mport);
+ 			VSA_atosa(&svsock,0,gethostaddr(gwhost));
+ 		}
+ 	}
+ 
  	VSA_setport(&svsock,VSA_port(&svdata));
  	VSA_prftp(&svsock,mport);
  	VSA_xtoap(&svsock,local,sizeof(local));

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