summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/nc.1
diff options
context:
space:
mode:
authordjm <>2004-10-17 03:13:55 +0000
committerdjm <>2004-10-17 03:13:55 +0000
commit91294475ad30114d23728b4a7599c81a0e1a99a3 (patch)
tree1f23c7ad55ad26e1dda318b65e9a34e4e26af6f1 /src/usr.bin/nc/nc.1
parent8a16cf0bfbdc91bb8136c9cedf795be3e0496e8c (diff)
downloadopenbsd-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.132
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
79network daemon testing 79network daemon testing
80.It 80.It
81a SOCKS or HTTP ProxyCommand for
82.Xr ssh 1
83.It
81and much, much more 84and 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
172flag. 175flag.
173The default is no timeout. 176The default is no timeout.
174.It Fl X Ar socks_version 177.It Fl X Ar proxy_version
175Requests that 178Requests that
176.Nm 179.Nm
177should use the specified version of the SOCKS protocol when talking to 180should use the specified protocol when talking to the proxy server.
178a SOCKS proxy. 181Supported protocols are
179SOCKS versions 4 and 5 are currently supported. 182.Dq 4
180If the version is not specified, SOCKS version 5 is used. 183(SOCKS v.4),
184.Dq 5
185(SOCKS v.5)
186and
187.Dq connect
188(HTTPS proxy).
189If 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
187should connect to 196should connect to
188.Ar hostname 197.Ar hostname
189using a SOCKS proxy at 198using a proxy at
190.Ar proxy_address 199.Ar proxy_address
191and 200and
192.Ar port . 201.Ar port .
193If 202If
194.Ar port 203.Ar port
195is not specified, port 1080 is used. 204is not specified, the well-known port for the proxy protocol is used (1080
205for SOCKS, 3128 for HTTPS).
196.It Fl z 206.It Fl z
197Specifies that 207Specifies that
198.Nm 208.Nm
@@ -342,6 +352,10 @@ responded with an ICMP packet after three seconds:
342Create and listen on a Unix Domain Socket: 352Create 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
356Connect 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