Changeset View
Changeset View
Standalone View
Standalone View
contrib/netcat/nc.1
Show All 21 Lines | |||||
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd September 26, 2015 | .Dd August 20, 2019 | ||||
.Dt NC 1 | .Dt NC 1 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm nc | .Nm nc | ||||
.Nd arbitrary TCP and UDP connections and listens | .Nd arbitrary TCP and UDP connections and listens | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm nc | .Nm nc | ||||
.Bk -words | .Bk -words | ||||
.Op Fl 46DdEFhklNnrStUuvz | .Op Fl 46DdEFhklMNnrStUuvz | ||||
.Op Fl e Ar IPsec_policy | .Op Fl e Ar IPsec_policy | ||||
.Op Fl I Ar length | .Op Fl I Ar length | ||||
.Op Fl i Ar interval | .Op Fl i Ar interval | ||||
.Op Fl -no-tcpopt | .Op Fl -no-tcpopt | ||||
.Op Fl O Ar length | .Op Fl O Ar length | ||||
.Op Fl P Ar proxy_username | .Op Fl P Ar proxy_username | ||||
.Op Fl p Ar source_port | .Op Fl p Ar source_port | ||||
.Op Fl s Ar source | .Op Fl s Ar source | ||||
▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
.Fl p , | .Fl p , | ||||
.Fl s , | .Fl s , | ||||
or | or | ||||
.Fl z | .Fl z | ||||
options. | options. | ||||
Additionally, any timeouts specified with the | Additionally, any timeouts specified with the | ||||
.Fl w | .Fl w | ||||
option are ignored. | option are ignored. | ||||
.It Fl M | |||||
Collect per-connection TCP statistics using the | |||||
.Xr stats 3 | |||||
framework and print them in JSON format to | |||||
0mp: s/then/them/ | |||||
Done Inline ActionsMaybe s/dump/print/ as well cem: Maybe s/dump/print/ as well | |||||
.Xr stderr 4 | |||||
after the connection is closed. | |||||
.It Fl N | .It Fl N | ||||
.Xr shutdown 2 | .Xr shutdown 2 | ||||
the network socket after EOF on the input. | the network socket after EOF on the input. | ||||
Some servers require this to finish their work. | Some servers require this to finish their work. | ||||
.It Fl n | .It Fl n | ||||
Do not do any DNS or service lookups on any specified addresses, | Do not do any DNS or service lookups on any specified addresses, | ||||
hostnames or ports. | hostnames or ports. | ||||
.It Fl -no-tcpopt | .It Fl -no-tcpopt | ||||
▲ Show 20 Lines • Show All 343 Lines • Show Last 20 Lines |
s/then/them/