summaryrefslogtreecommitdiff
path: root/usr.sbin/ftp-proxy/ftp-proxy.8
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2011-04-28 00:17:29 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2011-04-28 00:17:29 +0000
commitb0590a3eda21f8839605daf3434614e731c6489e (patch)
treeb7b0353697905335d6a734193f49f148a40fd66a /usr.sbin/ftp-proxy/ftp-proxy.8
parentb54ee1bf6959f4361319d0b5d4033d0425acb2ab (diff)
switch ftp-proxy over to divert-to instead of rdr-to. this avoids
an expensive state lookup (via natlook ioctl) and shrinks the code. tested by me and sthen, ok reyk sthen
Diffstat (limited to 'usr.sbin/ftp-proxy/ftp-proxy.8')
-rw-r--r--usr.sbin/ftp-proxy/ftp-proxy.88
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ftp-proxy/ftp-proxy.8 b/usr.sbin/ftp-proxy/ftp-proxy.8
index 7a1fbc3de26..6a6f2b7bd56 100644
--- a/usr.sbin/ftp-proxy/ftp-proxy.8
+++ b/usr.sbin/ftp-proxy/ftp-proxy.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ftp-proxy.8,v 1.14 2009/11/21 13:59:31 claudio Exp $
+.\" $OpenBSD: ftp-proxy.8,v 1.15 2011/04/28 00:17:28 mikeb Exp $
.\"
.\" Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 21 2009 $
+.Dd $Mdocdate: April 28 2011 $
.Dt FTP-PROXY 8
.Os
.Sh NAME
@@ -40,7 +40,7 @@
is a proxy for the Internet File Transfer Protocol.
FTP control connections should be redirected into the proxy using the
.Xr pf 4
-.Ar rdr-to
+.Ar divert-to
command, after which the proxy connects to the server on behalf of
the client.
.Pp
@@ -169,7 +169,7 @@ needs the following rules.
Adjust the rules as needed.
.Bd -literal -offset 2n
anchor "ftp-proxy/*"
-pass in quick proto tcp to port ftp rdr-to 127.0.0.1 port 8021
+pass in quick proto tcp to port ftp divert-to 127.0.0.1 port 8021
.Ed
.Sh SEE ALSO
.Xr ftp 1 ,