summaryrefslogtreecommitdiffstats
path: root/lib/libalias/alias_ftp.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-11-27 10:50:23 +0000
committerru <ru@FreeBSD.org>2001-11-27 10:50:23 +0000
commit1274247e0e3dd348947218f27d7fe44eba6806b1 (patch)
treecc178caf8f376fc5accd52ae1183bf23c59d17c2 /lib/libalias/alias_ftp.c
parentce68efb1de6579c249ab8ea294e19243002f9d44 (diff)
downloadFreeBSD-src-1274247e0e3dd348947218f27d7fe44eba6806b1.zip
FreeBSD-src-1274247e0e3dd348947218f27d7fe44eba6806b1.tar.gz
When servicing an internal FTP server, punch ipfirewall(4) holes
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
Diffstat (limited to 'lib/libalias/alias_ftp.c')
-rw-r--r--lib/libalias/alias_ftp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libalias/alias_ftp.c b/lib/libalias/alias_ftp.c
index 92bfae8..efc78c7 100644
--- a/lib/libalias/alias_ftp.c
+++ b/lib/libalias/alias_ftp.c
@@ -483,11 +483,8 @@ NewFtpMessage(struct ip *pip,
struct tcphdr *tc;
#ifndef NO_FW_PUNCH
- if (ftp_message_type == FTP_PORT_COMMAND ||
- ftp_message_type == FTP_EPRT_COMMAND) {
- /* Punch hole in firewall */
- PunchFWHole(ftp_link);
- }
+ /* Punch hole in firewall */
+ PunchFWHole(ftp_link);
#endif
/* Calculate data length of TCP packet */
OpenPOWER on IntegriCloud