LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2010, 03:42 AM   #1
Nilzor
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
TCP listener test utility?


I need a simple tool that acts as a TCP server on a specified port for testing firewall settings. From the client side I can then simply telnet into the port and see if I get answer. Would also be nice to be able to type something from the server so that I see that the communication also works, not just the initial connection.

Does such a utility exist?
 
Old 03-12-2010, 04:03 AM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Not that I'm aware of, but you could try a couple of things to achieve the same result.
  1. Run telnet or smtp on your test port
    For example, if you run ssh on your test port, and then connect to it from the client with nc or netcat, you'll see the ssh response from the server.
  2. Use nc or netcat to listen on the port
    Running nc -l on the server test port, and nc on the client will let you test sending characters between the systems to see that traffic is getting through.
Another useful tool to monitor the server's firewall is:-
Code:
watch -d iptables -nvL
(Your distro syntax may vary)
 
Old 03-12-2010, 04:54 AM   #3
Nilzor
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Aaah thanks... Netcat is exactly what I was looking for! Guess that's a tool that should be in the toolbox of every linux user, but somehow passed me by
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
do you know of a terminal based keyboard test utility vayira Linux - Hardware 2 02-19-2010 08:34 AM
A way to test for a fifo listener? lumix Linux - Newbie 1 05-17-2008 05:23 PM
usb to serial listener? tnrooster Linux - Software 1 05-01-2007 11:04 AM
cdcom random seek speed test utility? kocoman Linux - General 0 01-10-2006 11:39 AM
Hardware test utility saavik Linux - Hardware 1 04-14-2004 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration