diff options
author | ru <ru@FreeBSD.org> | 2001-11-27 10:50:23 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-11-27 10:50:23 +0000 |
commit | 1274247e0e3dd348947218f27d7fe44eba6806b1 (patch) | |
tree | cc178caf8f376fc5accd52ae1183bf23c59d17c2 /lib | |
parent | ce68efb1de6579c249ab8ea294e19243002f9d44 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libalias/alias_ftp.c | 7 |
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 */ |