From 9a4d7f3f204beeffd203f2d34f204cc19d7321e4 Mon Sep 17 00:00:00 2001 From: djm <> Date: Wed, 25 Jan 2006 23:21:37 +0000 Subject: implement HTTP proxy authentication support, very useful in a ssh_config ProxyCommand; ok beck@ --- src/usr.bin/nc/nc.1 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/usr.bin/nc/nc.1') diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 85e18a53f7..2b87caa915 100644 --- a/src/usr.bin/nc/nc.1 +++ b/src/usr.bin/nc/nc.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: nc.1,v 1.41 2005/10/25 03:51:06 dtucker Exp $ +.\" $OpenBSD: nc.1,v 1.42 2006/01/25 23:21:37 djm Exp $ .\" .\" Copyright (c) 1996 David Sacerdote .\" All rights reserved. @@ -36,6 +36,7 @@ .Bk -words .Op Fl 46DdhklnrStUuvz .Op Fl i Ar interval +.Op Fl P Ar proxy_username .Op Fl p Ar source_port .Op Fl s Ar source_ip_address .Op Fl T Ar ToS @@ -128,6 +129,10 @@ option are ignored. .It Fl n Do not do any DNS or service lookups on any specified addresses, hostnames or ports. +.It Fl P Ar proxy_username +Specifies a username to present to a proxy server that requires authentication. +If no username is specified then authentication will not be attempted. +Proxy authentication is only supported for HTTP CONNECT proxies at present. .It Fl p Ar source_port Specifies the source port .Nm @@ -386,6 +391,12 @@ directive in for more information. .Pp .Dl $ nc -x10.2.3.4:8080 -Xconnect host.example.com 42 +.Pp +The same example again, this time enabling proxy authentication with username +.Dq ruser +if the proxy requires it: +.Pp +.Dl $ nc -x10.2.3.4:8080 -Xconnect -Pruser host.example.com 42 .Sh SEE ALSO .Xr cat 1 , .Xr ssh 1 -- cgit v1.2.3-55-g6feb