[CentOS] nc not working as advertised
Robert Moskowitz
rgm at htt-consult.com
Fri Mar 8 00:09:56 UTC 2013
On 03/07/2013 06:30 PM, Keith Keller wrote:
> On 2013-03-07, Robert Moskowitz <rgm at htt-consult.com> wrote:
>> On 03/07/2013 05:06 PM, Paul Heinlein wrote:
>>> On Thu, 7 Mar 2013, Robert Moskowitz wrote:
>>>
>>>> I can't get nc to do anything worthwhile. In fact I can't even get the
>>>> examples in the manpage to work. From either my C6 servers or my F17
>>>> notebooks. For example:
>>>>
>>>> echo -n "GET / HTTP/1.0\r\n\r\n" | nc medon.htt-consult.com 80
>>> You mean
>>>
>>> echo -ne "GET ..."
>>>
>>> right?
>> No. I did a simple copy from the manpage. check it out yourself. :(
> The man page may be incorrect. You need -e in order to get echo to
> print out the line feeds properly:
I did try with "echo -ne" and that worked. the man page IS incorrect.
Guess I have to submit a bug report.
> Did you also try the client/server example in the man page (which looks
> correct to me)?
The localhost loopback works.
Ah, I just figured out my between systems problem. I was testing across
subnets, and the port I was using is not allowed over ipv6, I only have
an ipv4 rule for it. gumble. Corollary #2 of Murphy's Law: "It is
always something."
Now back to it. I think I figured out my HIP testing problems; it has
to do with the HIPFW options... Always firewalls, it seems.
More information about the CentOS
mailing list