HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: netcat started from xinetd vs. netcat on the c...
Operating System - Linux
1827990
Members
2241
Online
109973
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2007 01:11 AM
02-01-2007 01:11 AM
netcat started from xinetd vs. netcat on the command-line
Hi folks,
I'm trying to use netcat on the command line instead of netcat using xinetd and it is not yet working for me.
RHAS3U5 in a VM on an ESX server
Configuration in a file in /etc/xinetd.d:
service ovoagt383
{
disable = no
id = testserver_ovoagt383
flags = REUSE
bind = 19.157.64.64
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/nc
server_args = -w 3 192.168.105.3 ovoagt383
instances = 10
}
this setup works, I can issue a bbcutil -ping from another machine.
However, when I remove this entry from the file in /etc/xinetd.d and start netcat on the command line I get this error:
# nc -lnvv -p 383 -s 19.157.64.64 -w 3 192.168.105.3 383
listening on [19.157.64.64] 383 ...
invalid connection to [19.157.64.64] from (UNKNOWN) [19.157.71.118] 33021
As always points for helpful answers.
Thanks for any helpful insights or hints!
Christian
I'm trying to use netcat on the command line instead of netcat using xinetd and it is not yet working for me.
RHAS3U5 in a VM on an ESX server
Configuration in a file in /etc/xinetd.d:
service ovoagt383
{
disable = no
id = testserver_ovoagt383
flags = REUSE
bind = 19.157.64.64
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/nc
server_args = -w 3 192.168.105.3 ovoagt383
instances = 10
}
this setup works, I can issue a bbcutil -ping from another machine.
However, when I remove this entry from the file in /etc/xinetd.d and start netcat on the command line I get this error:
# nc -lnvv -p 383 -s 19.157.64.64 -w 3 192.168.105.3 383
listening on [19.157.64.64] 383 ...
invalid connection to [19.157.64.64] from (UNKNOWN) [19.157.71.118] 33021
As always points for helpful answers.
Thanks for any helpful insights or hints!
Christian
Yeshua loves you!
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2007 05:25 PM
02-01-2007 05:25 PM
Re: netcat started from xinetd vs. netcat on the command-line
You're trying to use NC as a TCP proxy ?
I'm pretty sure that 'nc' can't do that using '-l'.
I did some tests with various different versions, and couldn't get it to work at all in this manner.
It's quite happy to listen on a port and display the text on STDOUT.. so maybe using a pipe you could achieve this.
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).
I'm pretty sure that 'nc' can't do that using '-l'.
I did some tests with various different versions, and couldn't get it to work at all in this manner.
It's quite happy to listen on a port and display the text on STDOUT.. so maybe using a pipe you could achieve this.
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).
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2007 12:04 AM
02-02-2007 12:04 AM
Re: netcat started from xinetd vs. netcat on the command-line
Dear Stuart,
Thank you very much for taking the time to comment!
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.
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?
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).
Thanks for any helpful insights, Christian
Thank you very much for taking the time to comment!
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.
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?
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).
Thanks for any helpful insights, Christian
Yeshua loves you!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP