]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fixed the bug that prevented communication with FTP servers behind
authorru <ru@FreeBSD.org>
Fri, 21 Sep 2001 14:38:36 +0000 (14:38 +0000)
committerru <ru@FreeBSD.org>
Fri, 21 Sep 2001 14:38:36 +0000 (14:38 +0000)
commit7de7d2144f43e0013440b6e44592de78ad3ffa3d
tree2c8c515452b6abe9c7e4e3eeca3b6162fa919d12
parent85ebd45970dd827fef44f420f5c51c75f05c99b8
Fixed the bug that prevented communication with FTP servers behind
NAT in extended passive mode if the server's public IP address was
different from the main NAT address.  This caused a wrong aliasing
link to be created that did not route the incoming packets back to
the original IP address of the server.

natd -v -n pub0 -redirect_address localFTP publicFTP

Note that even if localFTP == publicFTP, one still needs to supply
the -redirect_address directive.  It is needed as a helper because
extended passive mode's 229 reply does not contain the IP address.

MFC after: 1 week
lib/libalias/alias_ftp.c
sys/netinet/libalias/alias_ftp.c