Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #265

Re: Configurable testing server

From pk <pk@pk.invalid>
Newsgroups comp.os.linux.networking
Subject Re: Configurable testing server
Followup-To comp.os.linux.networking
Date 2011-05-17 10:12 +0100
Organization Aioe.org NNTP Server
Message-ID <iqte5a$dh$1@speranza.aioe.org> (permalink)
References <b0dd8e52-f5a2-4499-89cc-68bd3275a8a9@j13g2000pro.googlegroups.com>

Followups directed to: comp.os.linux.networking

Show all headers | View raw


jprudent wrote:

> Hi!
> 
> I'm teaching firewalls on Linux.
> 
> I'm looking for a program that can take two arguments:
> --port portnumber [listening port number]
> --tcp or --udp [choose the protocol]
> 
> Several instances can be running on different port.
> Clients can connect through telnet and the server is echoing telnet
> input.
> 
> This program is aimed for students. They can add some iptables rules
> on machine and test if they still can access their servers from
> outside world.
> 
> Yes, I'm too lazy to write one myself.

I suppose something like

socat 'TCP-LISTEN:1234' 'EXEC:cat'

suitably wrapped to parametrize the protocol and port, would get you close.

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Configurable testing server jprudent <jprudent@gmail.com> - 2011-05-17 01:32 -0700
  Re: Configurable testing server Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-05-17 08:58 +0000
  Re: Configurable testing server pk <pk@pk.invalid> - 2011-05-17 10:12 +0100
    Re: Configurable testing server jprudent <jprudent@gmail.com> - 2011-05-17 03:30 -0700

csiph-web