NC command of the Linux package

Source: Internet
Author: User
Tags unix domain socket

Nc-1.84-22.el6.x86_64
The NC versions available on the system will vary, with a slightly different method of using the parameters

1.-4 mandatory use of IPv4
2.-6 mandatory use of IPv6
3.-D allows socket communication to return debug information
4.-D does not allow reading from standard input
5.-H Display NC Help document
6.-I interval
7. Specify the content delay between each line send and accept, also can make the connection between multiple ports delay
8.-K When a connection ends, force the NC to listen for another connection. Must be used with-l
9.-L is used to listen for incoming data links and cannot be used with-p-z-S. The timeout for the-W parameter is also ignored
Ten.-N does not perform any address, hostname, port or DNS query
One.-p Specifies the source port that the NC uses, restricted by permissions, and cannot be used with the-l
-r Specifies the source and destination ports that are used by the NC and cannot use those ports that the system originally specified
-S allows TCP MD5 signature options in RFC 2385
-S Source_ip_address
15. Specify the IP address of the interface used for the contract, and cannot be used with-l
-T ToS
17. Specify the IP service type of the link (TOS)
-C Line Wrapping
-T enables NC to interact with Telnet
-U using a UNIX domain socket
-U uses UDP instead of the default TCP option
Full-V Output verbose report
. W Timeout
24. A link does not operate for a period of time, then automatically disconnects, default no timeout
-X Proxy_version
26. Specify the protocol used by the NC to use the proxy, optionally with SOCKSV4,SOCKS5 and HTTPS. Default SOCKS5
X.-x proxy_address[:p ORT]
28. Specify the proxy address and port that NC uses. Default settings: SOCKS, 3128 (HTTPS)
-Z-only monitoring does not send any packets

Each time the NC starts listening, the server exits as soon as the client connection completes and exits. So, if you need to constantly use NC for data transfer, you need to use loops in your scripts. Using NC For more functionality, refer to the reference script provided by its RPM:
# RPM-QD NC

NC command of the Linux package

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.