summaryrefslogtreecommitdiff
path: root/src/usr.bin/nc/nc.1 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Mention that port can be specified as 0 in some situations, so that thederaadt2024-04-011-2/+3
| | | | system will allocate a port.
* Replace archaic \*(Lt and \*(Gt by plain < and >, respectively,schwarze2022-09-111-7/+7
| | | | | because these inspire devotion to cargo cult in developers. Cleanup suggested by kn@.
* one of the examples needs an -N (and explanation);jmc2021-03-311-4/+7
| | | | | | diff from robert scheck discussed with and tweaked by sthen
* Standardize argument naming for "sourceaddr" and unify the wording a bit,schwarze2020-02-121-7/+6
| | | | similar to what deraadt@ recently did in other manual pages.
* Service names are still resolved with -nkn2019-10-241-4/+4
| | | | | | | | | Just like pfctl(8)'s -N, this flag only avoid DNS; "nc -vz ::1 socks" still works. Fix documentation by copying pfctl's wording. OK deraadt
* too many words in previous;jmc2018-12-271-2/+2
|
* port ranges can be ambiguous with hypenated port-names.tedu2018-12-271-4/+4
| | | | | | specify that ranges must be numeric, and only check for range if first argument is a digit. identified by danj, fix suggest by sthen
* -T applies to ip6 too, apparently;jmc2018-09-251-4/+4
| | | | from nan xiao
* spelling;jmc2018-08-171-2/+2
|
* Make the wording more concise, use the imperative throughout, stateschwarze2018-08-171-108/+126
| | | | | | | more precisely which options require which other options, add many missing incompatibilities, mention the default for -e, and some macro cleanup. OK jmc@ tb@
* Allow TLS ciphers and protocols to be specified for nc(1).jsing2017-11-281-8/+18
| | | | | | | | | | | Replace the "tlscompat" and "tlsall" options with "cipher" and "protocol" options that are key/value pairs. This allows the user to specify ciphers and protocols in a form that are accepted by tls_config_set_ciphers() and tls_config_set_protocols() respectively. ok beck@ (also ok jmc@ for a previous revision of the man page).
* grammar was ass backwards;jmc2017-07-151-7/+7
|
* Add a "-T tlscompat" option to nc(1), which enables the use of all TLSjsing2017-07-151-2/+4
| | | | | | | | | | protocols and "compat" ciphers. This allows for TLS connections to TLS servers that are using less than ideal cipher suites, without having to resort to "-T tlsall" which enables all known cipher suites. Diff from Kyle J. McKay <mackyle at gmail dot com> ok beck@
* Implement nc -W recvlimit to terminate netcat after receiving abluhm2017-05-101-2/+7
| | | | | | number of packets. This allows to send a UDP request, receive a reply and check the result on the command line. input jmc@; OK millert@
* - -Z before -z in options listjmc2017-04-051-5/+5
| | | | - add -Z to help and usage()
* Allow nc to save the peer certificate and chain in a pem file specifiedbeck2017-04-051-2/+7
| | | | | with -Z ok jsing@
* Document that -x can take an ipv6 address enclosed in square brackets.jca2017-02-091-2/+5
|
* oscp -> ocsp;jmc2017-01-261-3/+3
| | | | from holger mikolon, plus one more in nc;
* tweak previous;jmc2016-11-061-3/+3
|
* rename tlslegacy to tlsall, and better describe what it does.beck2016-11-061-4/+4
| | | | ok jsing@
* zap trailing whitespace, and add -o to usage() and help (-h);jmc2016-11-051-3/+3
|
* Add support for server side OCSP stapling to libtls.beck2016-11-051-2/+9
| | | | Add support for server side OCSP stapling to netcat.
* new sentence, new line, and zap trailing whitespace;jmc2016-11-041-3/+4
|
* Add ocsp_require_stapling config option for tls - allows a connectionbeck2016-11-041-5/+7
| | | | | | to indicate that it requires the peer to provide a stapled OCSP response with the handshake. Provide a "-T muststaple" for nc that uses it. ok jsing@, guenther@
* do not uppercase "hop limit";jmc2016-07-021-4/+4
|
* Add -M and -m options to specify the outgoing and incoming minimum TTLjca2016-06-281-2/+9
| | | | Req by and ok blumh@
* Let netcat support the use of service names instead of port numbers.beck2016-06-021-4/+4
| | | | | based on a diff from Andras Farkas <deepbluemistake@gmail.com> ok deraadt@
* avoid trailing .Ns, reduce .Xo and .Sm, drop redundant .Bkschwarze2015-09-251-12/+4
|
* fix previous;jmc2015-09-121-21/+31
|
* Add TLS suppport to nc. Provides a useful little test and script tool.beck2015-09-111-6/+45
| | | | ok jsing@ bluhm@
* Sync camel case of "ProxyUseFdpass" with ssh_config(5).tobias2015-03-261-3/+3
| | | | ok djm
* Once more, the default routing table id is inherited from the processclaudio2014-02-261-3/+2
| | | | like for any other process as well. OK by many
* one of the examples needs -N to work again;jmc2014-02-101-3/+3
| | | | | | | the paper trail appears to be: reported in feebsd pr docs/185353 by rol robert-eckardt de fix suggested by peter wemm diff submitted to tech by allan jude
* escape not-full-stop-dot at eol;jmc2013-08-201-2/+2
|
* add -F flag to enabled fd-pass mode: establish connection and passdjm2013-08-201-3/+18
| | | | | | connected socket to stdout. This is useful in proxy mode to establish a connection for use by ssh in conjunction with its new ProxyUseFDPass option; ok markus@
* use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@schwarze2013-07-161-4/+4
|
* Don't shutdown nc(1)'s network socket when stdin closes. Matches *Hobbit*'ssthen2013-03-201-3/+7
| | | | | | original netcat and GNU netcat; revert to old behaviour with the new -N flag if needed. After much discussion with otto deraadt tedu and Martin Pelikan. ok deraadt@
* Allow UDP server to receive datagrams from multiple socket pairs with -khaesbaert2012-07-071-2/+6
| | | | | | | flag. Prompted by a question from dsp at 2f30 dot org, diff from Lazarom Koromil with a few tweaks by me, many thanks. ok mikeb@ nicm@ haesbaert@
* Expand the CAVEAT section to more fully describe the behaviour oflum2012-02-071-6/+13
| | | | | | | | the -uz combination. This diff stems from a diff by brynet@ sent to tech@ help from jmc@ regarding wording.
* change -w to apply to the connection as well. manpage bit from jmc@fgsch2011-10-041-4/+4
| | | | nicm@ ok.
* Standarize the ToS option across nc/ping/traceroute so that they'llhaesbaert2011-09-171-11/+18
| | | | | | | accept the same values as pf.conf. It accepts decimal, hexadecimal and the dscp/tos keywords. The ping option was ripped of in SMALL. ok mcbride@ sthen@
* Minor tweaks to nc(1) man page and usage.jeremy2011-01-091-13/+20
| | | | OK jmc@, nicm@, tedu@
* Support unix domain sockets in nc(1) with -Uu.jeremy2011-01-081-2/+16
| | | | | | | | | | | | | | | | | | | | | Previously, using -U with -u was an error that was not documented in the man page. Now it will use a unix socket in datagram mode. Bidirectional unix datagram communication requires a socket at both ends, so in client mode (without -l), a temporary socket is created so that responses from the server can be received. If -s is specified with -U and -u, it specifies the location of the temporary socket to create. This was mostly written way back in 2007. Since then, various improvements implemented based on suggestions from guenther@, tedu@, and nicm@. Man page help from nicm@ and jmc@. Unix datagram support requires a small change to atomicio.c in order to function correctly, this will be committed separately shortly. OK nicm@
* echo behaves differently in sh and csh, only handling C-style escapesguenther2010-07-251-3/+3
| | | | | | in the former, so switch an example that needs them to use printf instead. From bcr at freebsd.org. ok halex@
* Fix the naming of interfaces and variables for rdomains and rtablesguenther2010-07-031-5/+5
| | | | | | | | | | | | and make it possible to bind sockets (including listening sockets!) to rtables and not just rdomains. This changes the name of the system calls, socket option, and ioctl. After building with this you should remove the files /usr/share/man/cat2/[gs]etrdomain.0. Since this removes the existing [gs]etrdomain() system calls, the libc major is bumped. Written by claudio@, criticized^Wcritiqued by me
* Fix the worst among the fatal block-nesting issues we have in our tree,schwarze2010-02-231-4/+4
| | | | | | | | | | | | in the end simply changing Oo Xo Oo Oc Oc Xc to Oo Xo Oo Oc Xc Oc. I tried five different variants without the Xo/Xc, because there is no real reason why Xo/Xc should be needed here, and two additional variants with Xo/Xc that look more pretty than what i'm now committing. All seven alternatives work both with mandoc and groff 1.20.1, but all seven trigger various different bugs in our old groff, and we still need to remain compatible with our old groff right now. ok jmc@ sobrado@
* write UNIX-domain in a more consistent way; while here, replace asobrado2009-10-221-5/+5
| | | | | | | | few remaining ".Tn UNIX" macros with ".Ux" ones. pointed out by ratchov@, thanks! ok jmc@
* use the UNIX-related macros (.At and .Ux) where appropriate.sobrado2009-10-221-4/+8
| | | | ok jmc@
* tweak -V;jmc2009-06-051-2/+3
|
* The networking swissarmy knife needs to work on alternate domains as well.claudio2009-06-051-2/+5
| | | | Again -V can be used to specify the domain.