summaryrefslogtreecommitdiff
path: root/libexec/ftp-proxy
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2001-12-05 23:37:40 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2001-12-05 23:37:40 +0000
commitda69f9813bc6ddecce85586619ef041007584abb (patch)
tree9f4c4ecabf200c1c3016e901e1d102c9e5b96ef7 /libexec/ftp-proxy
parentf30659df398c3a0602cb4daeb0b363a27d76a1d4 (diff)
Explain that filter rules need to let pass connections to the proxy ports
in, why this is so, and how it's done.
Diffstat (limited to 'libexec/ftp-proxy')
-rw-r--r--libexec/ftp-proxy/ftp-proxy.821
1 files changed, 20 insertions, 1 deletions
diff --git a/libexec/ftp-proxy/ftp-proxy.8 b/libexec/ftp-proxy/ftp-proxy.8
index b0bf933cd96..f1e989d55fa 100644
--- a/libexec/ftp-proxy/ftp-proxy.8
+++ b/libexec/ftp-proxy/ftp-proxy.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ftp-proxy.8,v 1.8 2001/12/03 19:40:28 dhartmei Exp $
+.\" $OpenBSD: ftp-proxy.8,v 1.9 2001/12/05 23:37:39 dhartmei Exp $
.\"
.\" Copyright (c) 1996-2001
.\" Obtuse Systems Corporation, All rights reserved.
@@ -166,11 +166,30 @@ using
.Pp
in
.Xr inetd.conf 5 .
+.Pp
+ftp-proxy accepts the redirected control connections and forwards them
+to the server.
+The proxy replaces the address and port number that the client
+sends through the control connection to the server with his own
+address and proxy port, where it listens for the data connection.
+When the server opens the data connection back to this port, the
+proxy forwards it to the client.
+The
+.Xr pf.conf 5
+rules need to let pass connections to these proxy ports
+(see options -u, -m and -M above) in on the external interface.
+The following example allows only port 49152 to 65535 to pass in
+statefully (assuming xl1 is the external interface):
+.Bd -literal
+block in on xl1 proto tcp all
+pass in on xl1 proto tcp from any to xl0 port > 49151 keep state
+.Ed
.Sh SEE ALSO
.Xr ftp 1 ,
.Xr hosts.allow 5 ,
.Xr hosts.deny 5 ,
.Xr nat.conf 5 ,
+.Xr pf.conf 5 ,
.Xr pfctl 8 ,
.Xr syslogd 8
.Sh BUGS