Hi,

You could use tcpserver from the ucspi-tcp package, something like:

tcpserver 0.0.0.0 1234 /path/to/script

Then in the script, stdin == read from network, stdout == write to network.  So even a simple bash script will do :).

Jaco

On 12/06/11 15:52, Markus Stockhausen wrote:
On Tue, 06 Dec 2011 13:53:08 +0100
Christophe Carré <christophe.carre@netasq.com> wrote:
Hi,

If you have inetd on your OpenWrt, you can replace this perl script by a simple shell script to handle authentication.

Regards

Christophe
 
Hello,

I tried to evaluate that. Maybe I'm totally confused but I do not know
how to create a script in bash that listens on a port. netcat seemed
reasonable but did not help further.

Do you have a better tip for me?

Best regards.

Markus


------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/


_______________________________________________
Ipsec-tools-devel mailing list
Ipsec-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipsec-tools-devel