<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic netcat started from xinetd vs. netcat on the command-line in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/netcat-started-from-xinetd-vs-netcat-on-the-command-line/m-p/3936518#M84791</link>
    <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;I'm trying to use netcat on the command line instead of netcat using xinetd and it is not yet working for me.&lt;BR /&gt;&lt;BR /&gt;RHAS3U5 in a VM on an ESX server&lt;BR /&gt;&lt;BR /&gt;Configuration in a file in /etc/xinetd.d:&lt;BR /&gt;&lt;BR /&gt;service ovoagt383&lt;BR /&gt;{&lt;BR /&gt;        disable         = no&lt;BR /&gt;        id              = testserver_ovoagt383&lt;BR /&gt;        flags           = REUSE&lt;BR /&gt;        bind            = 19.157.64.64&lt;BR /&gt;        socket_type     = stream&lt;BR /&gt;        protocol        = tcp&lt;BR /&gt;        wait            = no&lt;BR /&gt;        user            = nobody&lt;BR /&gt;        server          = /usr/bin/nc&lt;BR /&gt;        server_args     = -w 3 192.168.105.3 ovoagt383&lt;BR /&gt;        instances       = 10&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;this setup works, I can issue a bbcutil -ping from another machine.&lt;BR /&gt;&lt;BR /&gt;However, when I remove this entry from the file in /etc/xinetd.d and start netcat on the command line I get this error:&lt;BR /&gt;&lt;BR /&gt;# nc -lnvv -p 383 -s 19.157.64.64 -w 3 192.168.105.3 383&lt;BR /&gt;listening on [19.157.64.64] 383 ...&lt;BR /&gt;invalid connection to [19.157.64.64] from (UNKNOWN) [19.157.71.118] 33021&lt;BR /&gt;&lt;BR /&gt;As always points for helpful answers.&lt;BR /&gt;&lt;BR /&gt;Thanks for any helpful insights or hints!&lt;BR /&gt;&lt;BR /&gt;Christian</description>
    <pubDate>Thu, 01 Feb 2007 09:11:35 GMT</pubDate>
    <dc:creator>Christian Deutsch_1</dc:creator>
    <dc:date>2007-02-01T09:11:35Z</dc:date>
    <item>
      <title>netcat started from xinetd vs. netcat on the command-line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/netcat-started-from-xinetd-vs-netcat-on-the-command-line/m-p/3936518#M84791</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;I'm trying to use netcat on the command line instead of netcat using xinetd and it is not yet working for me.&lt;BR /&gt;&lt;BR /&gt;RHAS3U5 in a VM on an ESX server&lt;BR /&gt;&lt;BR /&gt;Configuration in a file in /etc/xinetd.d:&lt;BR /&gt;&lt;BR /&gt;service ovoagt383&lt;BR /&gt;{&lt;BR /&gt;        disable         = no&lt;BR /&gt;        id              = testserver_ovoagt383&lt;BR /&gt;        flags           = REUSE&lt;BR /&gt;        bind            = 19.157.64.64&lt;BR /&gt;        socket_type     = stream&lt;BR /&gt;        protocol        = tcp&lt;BR /&gt;        wait            = no&lt;BR /&gt;        user            = nobody&lt;BR /&gt;        server          = /usr/bin/nc&lt;BR /&gt;        server_args     = -w 3 192.168.105.3 ovoagt383&lt;BR /&gt;        instances       = 10&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;this setup works, I can issue a bbcutil -ping from another machine.&lt;BR /&gt;&lt;BR /&gt;However, when I remove this entry from the file in /etc/xinetd.d and start netcat on the command line I get this error:&lt;BR /&gt;&lt;BR /&gt;# nc -lnvv -p 383 -s 19.157.64.64 -w 3 192.168.105.3 383&lt;BR /&gt;listening on [19.157.64.64] 383 ...&lt;BR /&gt;invalid connection to [19.157.64.64] from (UNKNOWN) [19.157.71.118] 33021&lt;BR /&gt;&lt;BR /&gt;As always points for helpful answers.&lt;BR /&gt;&lt;BR /&gt;Thanks for any helpful insights or hints!&lt;BR /&gt;&lt;BR /&gt;Christian</description>
      <pubDate>Thu, 01 Feb 2007 09:11:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/netcat-started-from-xinetd-vs-netcat-on-the-command-line/m-p/3936518#M84791</guid>
      <dc:creator>Christian Deutsch_1</dc:creator>
      <dc:date>2007-02-01T09:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: netcat started from xinetd vs. netcat on the command-line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/netcat-started-from-xinetd-vs-netcat-on-the-command-line/m-p/3936519#M84792</link>
      <description>You're trying to use NC as a TCP proxy ?&lt;BR /&gt;&lt;BR /&gt;I'm pretty sure that 'nc' can't do that using '-l'.&lt;BR /&gt;&lt;BR /&gt;I did some tests with various different versions, and couldn't get it to work at all in this manner.&lt;BR /&gt;&lt;BR /&gt;It's quite happy to listen on a port and display the text on STDOUT.. so maybe using a pipe you could achieve this.&lt;BR /&gt;&lt;BR /&gt;If you do just want a TCP proxy, then get a dedicated service to do this (they exist, but I usually end up writing something in perl).</description>
      <pubDate>Fri, 02 Feb 2007 01:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/netcat-started-from-xinetd-vs-netcat-on-the-command-line/m-p/3936519#M84792</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-02-02T01:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: netcat started from xinetd vs. netcat on the command-line</title>
      <link>https://community.hpe.com/t5/operating-system-linux/netcat-started-from-xinetd-vs-netcat-on-the-command-line/m-p/3936520#M84793</link>
      <description>Dear Stuart,&lt;BR /&gt;&lt;BR /&gt;Thank you very much for taking the time to comment!&lt;BR /&gt;&lt;BR /&gt;As I mentioned, netcat IS working as a proxy when called by xinetd but it is NOT working properly when called from a shell using the -l option.&lt;BR /&gt;&lt;BR /&gt;If I understood you right, maybe netcat works better accepting input from stdin via xinetd vs. listening on a port using the -l option? For our testing maybe we could use a perl script that listens on a port and forwards everything from that port to stdout, piped into netcat and vice versa? Do you think this might work?&lt;BR /&gt;&lt;BR /&gt;We are testing/debugging some network behaviour and would like to understand precisely WHY netcat is failing us in certain situations (use case A vs. use case B even when both use cases are via xinetd).&lt;BR /&gt;&lt;BR /&gt;Thanks for any helpful insights, Christian</description>
      <pubDate>Fri, 02 Feb 2007 08:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/netcat-started-from-xinetd-vs-netcat-on-the-command-line/m-p/3936520#M84793</guid>
      <dc:creator>Christian Deutsch_1</dc:creator>
      <dc:date>2007-02-02T08:04:00Z</dc:date>
    </item>
  </channel>
</rss>

