[Ilugc] Occupy a port

  • From: solar345@xxxxxxxxxxx (Antano Solar John)
  • Date: Fri Aug 25 17:40:56 2006

maybe you can just code a c program to open a socket at the particular port 
.... that will preventany other connections at that port


From: "Binand Sethumadhavan" <binand@xxxxxxxxx>
To: "Suresh Ramasubramanian" <linux@xxxxxxxxxxxxxxxx>
CC: ilugc <ilugc@xxxxxxxxxxxxx>
Subject: Re: [Ilugc] Occupy a port
Date: Thu, 24 Aug 2006 10:27:51 +0200

On 24/08/06, Suresh Ramasubramanian <linux@xxxxxxxxxxxxxxxx> wrote:
Senthil Kumaran S wrote:
I want to know how can we make a port be occupied in GNU/Linux.

For example I want to make something listen on port 80, 3306, etc
ports by not actually running a webserver, mysql, etc respectively.

use netcat

Netcat will quit after one connection (I haven't seen any option in
the Linux default one to behave as a forking server), so a better
option might be to use xinetd/discard service on the ports you want to
disable.

Binand
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with "unsubscribe 
<password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

_________________________________________________________________
Live the life in style with MSN Lifestyle. Check out! 
http://content.msn.co.in/Lifestyle/Default

Other related posts: