Networking Forums

Networking Forums > Computer Networking > Linux Networking > Configurable testing server

Reply
Thread Tools Display Modes

Configurable testing server

 
 
jprudent
Guest
Posts: n/a

 
      05-17-2011, 08:32 AM
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.

Thanks!
 
Reply With Quote
 
 
 
 
Jorgen Grahn
Guest
Posts: n/a

 
      05-17-2011, 08:58 AM
On Tue, 2011-05-17, 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.


- netcat, aka 'nc'

- the tcp 'echo' service provided by inetd; you can probably
configure it to listen on any number of ports and not just
the standard echo port (port 7, IIRC)

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
 
pk
Guest
Posts: n/a

 
      05-17-2011, 09:12 AM
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.

 
Reply With Quote
 
jprudent
Guest
Posts: n/a

 
      05-17-2011, 10:30 AM
On May 17, 4:12*pm, pk <p...@pk.invalid> wrote:
> 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.


Great! netcat is exactly what I needed.
socat seems more complete (i just had a glance on doc)

Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User-configurable mail-filtering on ISPs' servers? Jeremy Nicoll - news posts Broadband 6 06-15-2009 06:34 PM
testing new news server. The Natural Philosopher Broadband 4 04-15-2009 11:35 AM
Windows Server testing - need batch file syntax which will resume virtual machines from a paused state Spin Windows Networking 1 02-28-2008 02:54 AM
Stress/Load Testing PPPoE Server for Linux. Padam J S Linux Networking 1 09-29-2004 02:02 PM
DHCP server testing? CarSeeker Windows Networking 0 02-11-2004 02:18 AM



1 2 3 4 5 6 7 8 9 10 11