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 |