diff options
author | djm <> | 2004-10-17 03:13:55 +0000 |
---|---|---|
committer | djm <> | 2004-10-17 03:13:55 +0000 |
commit | 91294475ad30114d23728b4a7599c81a0e1a99a3 (patch) | |
tree | 1f23c7ad55ad26e1dda318b65e9a34e4e26af6f1 /src/usr.bin/nc/nc.1 | |
parent | 8a16cf0bfbdc91bb8136c9cedf795be3e0496e8c (diff) | |
download | openbsd-91294475ad30114d23728b4a7599c81a0e1a99a3.tar.gz openbsd-91294475ad30114d23728b4a7599c81a0e1a99a3.tar.bz2 openbsd-91294475ad30114d23728b4a7599c81a0e1a99a3.zip |
http proxy CONNECT support; ok beck@
Diffstat (limited to 'src/usr.bin/nc/nc.1')
-rw-r--r-- | src/usr.bin/nc/nc.1 | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 182950a952..44cdb14bbc 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.32 2004/07/15 15:07:52 markus Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.33 2004/10/17 03:13:55 djm Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1996 David Sacerdote | 3 | .\" Copyright (c) 1996 David Sacerdote |
4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
@@ -39,7 +39,7 @@ | |||
39 | .Op Fl p Ar source_port | 39 | .Op Fl p Ar source_port |
40 | .Op Fl s Ar source_ip_address | 40 | .Op Fl s Ar source_ip_address |
41 | .Op Fl w Ar timeout | 41 | .Op Fl w Ar timeout |
42 | .Op Fl X Ar socks_version | 42 | .Op Fl X Ar proxy_protocol |
43 | .Oo Xo | 43 | .Oo Xo |
44 | .Fl x Ar proxy_address Ns Oo : Ns | 44 | .Fl x Ar proxy_address Ns Oo : Ns |
45 | .Ar port Oc Oc | 45 | .Ar port Oc Oc |
@@ -78,6 +78,9 @@ shell-script based HTTP clients and servers | |||
78 | .It | 78 | .It |
79 | network daemon testing | 79 | network daemon testing |
80 | .It | 80 | .It |
81 | a SOCKS or HTTP ProxyCommand for | ||
82 | .Xr ssh 1 | ||
83 | .It | ||
81 | and much, much more | 84 | and much, much more |
82 | .El | 85 | .El |
83 | .Pp | 86 | .Pp |
@@ -171,13 +174,19 @@ will listen forever for a connection, with or without the | |||
171 | .Fl w | 174 | .Fl w |
172 | flag. | 175 | flag. |
173 | The default is no timeout. | 176 | The default is no timeout. |
174 | .It Fl X Ar socks_version | 177 | .It Fl X Ar proxy_version |
175 | Requests that | 178 | Requests that |
176 | .Nm | 179 | .Nm |
177 | should use the specified version of the SOCKS protocol when talking to | 180 | should use the specified protocol when talking to the proxy server. |
178 | a SOCKS proxy. | 181 | Supported protocols are |
179 | SOCKS versions 4 and 5 are currently supported. | 182 | .Dq 4 |
180 | If the version is not specified, SOCKS version 5 is used. | 183 | (SOCKS v.4), |
184 | .Dq 5 | ||
185 | (SOCKS v.5) | ||
186 | and | ||
187 | .Dq connect | ||
188 | (HTTPS proxy). | ||
189 | If the protocol is not specified, SOCKS version 5 is used. | ||
181 | .It Xo | 190 | .It Xo |
182 | .Fl x Ar proxy_address Ns Oo : Ns | 191 | .Fl x Ar proxy_address Ns Oo : Ns |
183 | .Ar port Oc | 192 | .Ar port Oc |
@@ -186,13 +195,14 @@ Requests that | |||
186 | .Nm | 195 | .Nm |
187 | should connect to | 196 | should connect to |
188 | .Ar hostname | 197 | .Ar hostname |
189 | using a SOCKS proxy at | 198 | using a proxy at |
190 | .Ar proxy_address | 199 | .Ar proxy_address |
191 | and | 200 | and |
192 | .Ar port . | 201 | .Ar port . |
193 | If | 202 | If |
194 | .Ar port | 203 | .Ar port |
195 | is not specified, port 1080 is used. | 204 | is not specified, the well-known port for the proxy protocol is used (1080 |
205 | for SOCKS, 3128 for HTTPS). | ||
196 | .It Fl z | 206 | .It Fl z |
197 | Specifies that | 207 | Specifies that |
198 | .Nm | 208 | .Nm |
@@ -342,6 +352,10 @@ responded with an ICMP packet after three seconds: | |||
342 | Create and listen on a Unix Domain Socket: | 352 | Create and listen on a Unix Domain Socket: |
343 | .Pp | 353 | .Pp |
344 | .Dl $ nc -lU /var/tmp/dsocket | 354 | .Dl $ nc -lU /var/tmp/dsocket |
355 | .Pp | ||
356 | Connect to port 42 of hostname via an HTTP proxy at 10.2.3.4: | ||
357 | .Pp | ||
358 | .Dl $ nc -x10.2.3.4:8080 -Xconnect hostname 42 | ||
345 | .Sh SEE ALSO | 359 | .Sh SEE ALSO |
346 | .Xr cat 1 | 360 | .Xr cat 1 |
347 | .Sh AUTHORS | 361 | .Sh AUTHORS |