diff options
author | djm <> | 2006-01-25 23:21:37 +0000 |
---|---|---|
committer | djm <> | 2006-01-25 23:21:37 +0000 |
commit | 9a4d7f3f204beeffd203f2d34f204cc19d7321e4 (patch) | |
tree | 35b595e90f1ecf05250205412afa830537e2371f /src/usr.bin/nc/nc.1 | |
parent | f9006c0d860615bd798c2a8b553ba592ec3b4524 (diff) | |
download | openbsd-9a4d7f3f204beeffd203f2d34f204cc19d7321e4.tar.gz openbsd-9a4d7f3f204beeffd203f2d34f204cc19d7321e4.tar.bz2 openbsd-9a4d7f3f204beeffd203f2d34f204cc19d7321e4.zip |
implement HTTP proxy authentication support, very useful in a ssh_config
ProxyCommand; ok beck@
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r-- | src/usr.bin/nc/nc.1 | 13 |
1 files changed, 12 insertions, 1 deletions
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 @@ | |||
1 | .\" $OpenBSD: nc.1,v 1.41 2005/10/25 03:51:06 dtucker Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.42 2006/01/25 23:21:37 djm Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1996 David Sacerdote | 3 | .\" Copyright (c) 1996 David Sacerdote |
4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
@@ -36,6 +36,7 @@ | |||
36 | .Bk -words | 36 | .Bk -words |
37 | .Op Fl 46DdhklnrStUuvz | 37 | .Op Fl 46DdhklnrStUuvz |
38 | .Op Fl i Ar interval | 38 | .Op Fl i Ar interval |
39 | .Op Fl P Ar proxy_username | ||
39 | .Op Fl p Ar source_port | 40 | .Op Fl p Ar source_port |
40 | .Op Fl s Ar source_ip_address | 41 | .Op Fl s Ar source_ip_address |
41 | .Op Fl T Ar ToS | 42 | .Op Fl T Ar ToS |
@@ -128,6 +129,10 @@ option are ignored. | |||
128 | .It Fl n | 129 | .It Fl n |
129 | Do not do any DNS or service lookups on any specified addresses, | 130 | Do not do any DNS or service lookups on any specified addresses, |
130 | hostnames or ports. | 131 | hostnames or ports. |
132 | .It Fl P Ar proxy_username | ||
133 | Specifies a username to present to a proxy server that requires authentication. | ||
134 | If no username is specified then authentication will not be attempted. | ||
135 | Proxy authentication is only supported for HTTP CONNECT proxies at present. | ||
131 | .It Fl p Ar source_port | 136 | .It Fl p Ar source_port |
132 | Specifies the source port | 137 | Specifies the source port |
133 | .Nm | 138 | .Nm |
@@ -386,6 +391,12 @@ directive in | |||
386 | for more information. | 391 | for more information. |
387 | .Pp | 392 | .Pp |
388 | .Dl $ nc -x10.2.3.4:8080 -Xconnect host.example.com 42 | 393 | .Dl $ nc -x10.2.3.4:8080 -Xconnect host.example.com 42 |
394 | .Pp | ||
395 | The same example again, this time enabling proxy authentication with username | ||
396 | .Dq ruser | ||
397 | if the proxy requires it: | ||
398 | .Pp | ||
399 | .Dl $ nc -x10.2.3.4:8080 -Xconnect -Pruser host.example.com 42 | ||
389 | .Sh SEE ALSO | 400 | .Sh SEE ALSO |
390 | .Xr cat 1 , | 401 | .Xr cat 1 , |
391 | .Xr ssh 1 | 402 | .Xr ssh 1 |