LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-25-2010, 11:05 AM   #1
Jim Bengtson
Member
 
Registered: Feb 2009
Location: Iowa
Distribution: Ubuntu 9.10
Posts: 164

Rep: Reputation: 38
Testing ipTables Firewall


I'm testing an ipTables firewall. Using nmap, I can see all the open ports...but there aren't very many. This firewall is in a test network, and the servers behind it aren't in place yet. So port 80, which will eventually be forwarded to a web server, shows as closed even though the firewall isn't blocking it because there's no web server to forward that traffic to.

Is there a tool or technique that I can use to "listen" to a given port, so that nmap will respond correctly that the port is open, even though it's not actually functioning? I want to test the firewall as if all of my application servers were in place (even though they're not in place yet). Any suggestions?
 
Old 03-25-2010, 12:02 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I've never done it, but the nc command (netcat) should be able to listen on specific ports. So something like:

nc -l 80

should have nc listening on port 80. I have no idea what nmap would make of it however.
 
Old 03-26-2010, 09:18 AM   #3
Jim Bengtson
Member
 
Registered: Feb 2009
Location: Iowa
Distribution: Ubuntu 9.10
Posts: 164

Original Poster
Rep: Reputation: 38
Well, I've found a few possibilities. I haven't tried them out yet, but I thought I'd share them here for anyone who's interested:

PortMapper - The PortMapper-Server is a program, that listens a port (or ports) of a computer and transmits all the incoming requests to some other port of other computer. The PortMapper-Client is graphical tool for administering of Server.
http://sourceforge.net/projects/portmapper/files/

Listenport - Listens on a selected TCP port and displays remote IP and source port when connection is received. [Windows utility]
http://sourceforge.net/projects/listenport/

Blingd (prealpha) - Blingd is a multi-purpose daemon for UNIX/Linux that listens on an arbitrary TCP port. When queried, blingd will return a configurable message or random blings.
http://sourceforge.net/projects/blingd/

Sock4Log (beta) - Sock4Log is a simple java xml serwer. Sock4Log will listen for client connections on the specified port number. It is created for retrieving xml log data from Flash Swf aplications which are using XmlSocketConnection.
http://sourceforge.net/projects/sock4log/files/
 
  


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
Testing IPTables SBN Linux - Security 2 10-26-2007 04:03 AM
testing iptables performance testing pavan.daemon Linux - Networking 2 09-28-2007 05:22 PM
Firewall Testing aquatux Linux - Security 4 09-10-2007 04:47 PM
Iptables with iptables-firewall.conf arno's matt3333 Slackware 16 06-28-2007 07:20 AM
Testing IPTABLES Firewall 1jamie Linux - Security 6 08-28-2003 08:17 AM

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

All times are GMT -5. The time now is 05:42 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