Gentoo Archives: gentoo-server

From: Martin Hajduch <martin.hajduch@×××××××××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] open a temp port script daemon
Date: Wed, 02 Jun 2004 22:27:52
Message-Id: 40BE545D.3090302@assyst-intl.com
In Reply to: Re: [gentoo-server] open a temp port script daemon by Kashani
1 >>On the server emerge net-analyzer/netcat and then your tempport should
2 >>be a script like this:
3 >>
4 >>
5 >>
6 > Didn't realize netcat could also listen for connections as well.
7 >
8 >
9 you can also use inetd/xinetd
10
11 for inetd you add line like this:
12 1521 stream tcp nowait nobody /bin/echo /bin/echo "It worked"
13 to /etc/inetd.conf
14
15 and then send SIGHUP to inetd process
16
17 with xinetd it is similar, just you a add a new file with different syntax
18
19 this is permanent (works until you remove that line and let inetd to
20 reread its configuration), so it is a quite good method how can you (for
21 example) disable ping for certain server, but still have a way how to
22 'ping' it using telnet (available everywhere) for support people, etc ...
23
24 there are reasons for disabling ping (icmp in general) because of security

Attachments

File name MIME type
smime.p7s application/x-pkcs7-signature

Replies

Subject Author
Re: [gentoo-server] open a temp port script daemon Kashani <kashani-list@××××××××.net>