Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] port loop back
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

rackathon
 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
leon_73
Guru
Guru


Joined: 13 Mar 2003
Posts: 505
Location: Milano

PostPosted: Wed Mar 07, 2007 9:23 am    Post subject: [SOLVED] port loop back Reply with quote

Ciao a tutti,

tempo fa avevo letto di un programmino che svolgeva un servizio che in questio gg mi potrebbe tornare utile ma del quale ora non mi ricordo il nome... magari mi potete aiutare voi...

Quello che faceva era semplicemente partire e mettersi in ascolto su una porta indicata. Una volta avviato era possibile controllare se quella determinata porta era raggiungibile o meno, con un semplice telnet verso quella porta.

Scrivendo qualcosa, questo "demone" la leggeve e la rimandava al mittente.

non e' nulla di speciale... ma in questo momento potrebbe tornarmi utile.


Potete propormi qualcosa di simile?

Leo


Last edited by leon_73 on Thu Mar 08, 2007 12:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
comio
Veteran
Veteran


Joined: 03 Jul 2003
Posts: 2159
Location: Milano (Taranto di Origine)

PostPosted: Wed Mar 07, 2007 10:22 am    Post subject: Reply with quote

Questo?

Code:

* net-misc/knock
     Available versions:  (~)0.3 (~)0.3.1 (~)0.4 0.5
     Homepage:            http://www.zeroflux.org/knock/
     Description:         A simple port-knocking daemon


ciao
_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
gutter
Moderator
Moderator


Joined: 13 Mar 2004
Posts: 7113
Location: Lenzburg, Aarau, Switzerland

PostPosted: Wed Mar 07, 2007 1:35 pm    Post subject: Reply with quote

Hai provato a vedere:

Code:
/etc/xinetd.d/echo-*


:?:
_________________
Registered as User #281564 and Machines #163761 #273335
Back to top
View user's profile Send private message
leon_73
Guru
Guru


Joined: 13 Mar 2003
Posts: 505
Location: Milano

PostPosted: Thu Mar 08, 2007 11:11 am    Post subject: Reply with quote

comio wrote:
Questo?

Code:

* net-misc/knock
     Available versions:  (~)0.3 (~)0.3.1 (~)0.4 0.5
     Homepage:            http://www.zeroflux.org/knock/
     Description:         A simple port-knocking daemon


ciao


Ti ringrazio ma no... questo mi serve come portknocker... mentre a me serve solo una specie di loopback...
adesso provo a vedere se gutter ci ha preso ;-)

comunque grazie

leo
edit
gutter wrote:
Hai provato a vedere:

Code:
/etc/xinetd.d/echo-*


:?:



o non ho capito come fare ... o mi sa che anche questo non mi va bene... :-(


quello che vorrei fare e' semplicemente avviare un demone su si una determinata porta e da un client fare un "telnet IPSERVER PORTA" collegarmi al demone e se la porta e' raggiungibile scrivere "ciao" e ricevere un ciao in risposta...
o una cosa simile, telnet e' solo un esempio.


Leo


Last edited by leon_73 on Thu Mar 08, 2007 11:35 am; edited 1 time in total
Back to top
View user's profile Send private message
GiRa
l33t
l33t


Joined: 07 Apr 2005
Posts: 717

PostPosted: Thu Mar 08, 2007 11:23 am    Post subject: Reply with quote

Netcat?
Back to top
View user's profile Send private message
djinnZ
Veteran
Veteran


Joined: 02 Nov 2006
Posts: 3491
Location: not so far from an evil, world famous, two thousandth years sleeping from last big disaster, volcano

PostPosted: Thu Mar 08, 2007 11:32 am    Post subject: Reply with quote

non vorrei sbagliarmi ma non è mai esistito un simile pacchetto. Era il codice sorgente di un esempio, ma non mi ricordo più dove lo ho visto.

[IPER-OT] e con questo messaggio sono diventato guru 8) .
Non so se esserne felice o meno da miscredente convinto.
_________________
verba et risus abundat in orae stultorum sed etiam semper severi insani sunt :wink:
mala tempora currunt... mater stultorum semper pregna est :twisted:
Murpy'sLaw: If anything can go wrong, it will - O'Toole's Corollary: Murphy was an optimist
Back to top
View user's profile Send private message
leon_73
Guru
Guru


Joined: 13 Mar 2003
Posts: 505
Location: Milano

PostPosted: Thu Mar 08, 2007 12:05 pm    Post subject: Reply with quote

GiRa wrote:
Netcat?

Siori e Siore... il nostro caro GiRa ha vinto una bambolina :-)

netcat e' stato la soluzione

<SERVER>
#netcat -l -p 667 -T -v
</SERVER>

<CLIENT>
telnet 127.0.0.1 667
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
ciao
tutto funziona?
</CLIENT>

e scrivendo i vari "ciao tutto funziona" sul server appare

<SERVER>
ciao
tutto funziona?
</SERVER>


comunque grazie a tutti

Leo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum