summaryrefslogtreecommitdiff
path: root/lib/libalias/alias_ftp.c
Commit message (Collapse)AuthorAgeFilesLines
* When servicing an internal FTP server, punch ipfirewall(4) holesRuslan Ermilov2001-11-271-5/+2
| | | | | | | | | | | | for passive mode data connections (PASV/EPSV -> 227/229). Well, the actual punching happens a bit later, when the aliasing link becomes fully specified. Prodded by: Danny Carroll <dannycarroll@hotmail.com> MFC after: 1 week Notes: svn path=/head/; revision=86953
* cmott@scientech.com -> cm@linktel.netBrian Somers2001-11-031-1/+1
| | | | | | | Requested by: Charles Mott <cmott@scientech.com> Notes: svn path=/head/; revision=85964
* Add __FBSDID's to libaliasMatthew Dillon2001-09-301-2/+3
| | | | Notes: svn path=/head/; revision=84195
* Fixed the bug that prevented communication with FTP servers behindRuslan Ermilov2001-09-211-3/+4
| | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=83771
* Make the copyright consistent.Brian Somers2001-08-201-3/+0
| | | | | | | Previously approved by: Charles Mott <cmott@scientech.com> Notes: svn path=/head/; revision=82001
* Fixed the brain-o in rev. 1.10: the logic check was reversed.Ruslan Ermilov2001-06-271-1/+1
| | | | | | | Reported by: Bernd Fuerwitt <bf@fuerwitt.de> Notes: svn path=/head/; revision=78886
* Add BSD-style copyright headersBrian Somers2001-06-041-2/+28
| | | | | | | Approved by: Charles Mott <cmott@scientech.com> Notes: svn path=/head/; revision=77701
* Add an integer field to keep protocol-specific flags with links.Ruslan Ermilov2001-05-301-4/+11
| | | | | | | | | | | | | For FTP control connection, keep the CRLF end-of-line termination status in there. Fixed the bug when the first FTP command in a session was ignored. PR: 24048 MFC after: 1 week Notes: svn path=/head/; revision=77485
* Added boolean argument to link searching functions, indicatingRuslan Ermilov2000-10-301-1/+1
| | | | | | | whether they should create a link if lookup has failed or not. Notes: svn path=/head/; revision=67980
* - Improved passive mode FTP support by aliasing 229 replies.Ruslan Ermilov2000-06-161-312/+337
| | | | | | | | - Stricter checking of PORT/EPRT/227/229 messages format. - Moved all security checks into one place. Notes: svn path=/head/; revision=61735
* - Added support for passive mode FTP by aliasing 227 replies.Ruslan Ermilov2000-06-141-15/+207
| | | | | | | | | | | | | | | | | | It does mean that it is now possible to run passive-mode FTP server behind NAT. - SECURITY: FTP aliasing engine now ensures that: o the segment preceding a PORT/227 segment terminates with a \r\n; o the IP address in the PORT/227 matches the source IP address of the packet; o the port number in the PORT command or 277 reply is greater than or equal to 1024. Submitted by: Erik Salander <erik@whistle.com> Reviewed by: ru Notes: svn path=/head/; revision=61677
* - Add support for FTP EPRT (RFC 2428) command.Ruslan Ermilov2000-04-061-63/+169
| | | | | | | | | | | | - Minor optimizations. - Minor spelling fixes. PR: 14305 Submitted by: ume Rewritten by: ru Notes: svn path=/head/; revision=59075
* Add $FreeBSD$ and spell Eklund properly.Bill Fumerola1999-08-291-0/+2
| | | | | | | Approved by: brian (well, he approved adding $Id$) Notes: svn path=/head/; revision=50597
* Remove all diagnostics to stdout/stderr with #ifdef DEBUGBrian Somers1999-03-091-0/+2
| | | | | | | Statify functions in alias_nbt.c Notes: svn path=/head/; revision=44616
* Don't call PunchFWHole() ifdef NO_FW_PUNCHBrian Somers1998-06-061-0/+2
| | | | | | | Pointed out by: "Steve Sims" <SimsS@IBM.Net> Notes: svn path=/head/; revision=36711
* Teach libalias to work with IPFW firewalls (controlled by a flag).Eivind Eklund1998-01-091-1/+6
| | | | | | | | Obtained from: Yes development tree (+ 10 lines of patches from Charles Mott, original libalias author) Notes: svn path=/head/; revision=32377
* Create the alias library. This is currently only used byBrian Somers1997-05-231-0/+220
ppp (or will be shortly). Natd can now be updated to use this library rather than carrying its own version of the code. Submitted by: Charles Mott <cmott@srv.net> Notes: svn path=/cvs2svn/branches/CMOTT/; revision=26026