Nп/п : 81 из 93
От : Jay Harris 1:229/664 04 ноя 24 14:49:32
К : Wilfred van Velzen 04 ноя 24 22:52:01
Тема : Re: ping / traceroute
----------------------------------------------------------------------------------
@MSGID: 1:229/664 e9b288d0
@REPLY: 2:280/464 67290db5
@TZUTC: -0500
@TID: hpt/lnx 1.9 2024-03-02
On 04 Nov 2024, Wilfred van Velzen said the following...
Wv> DS> So if I read your comment you would like to accept a ping from ping
Wv> DS> but not reply with ping as from
Wv> Yes, that last restriction is (very) important, otherwise PONG messages
Wv> could "bounce" back and forth indefinitly...
my $myname = `Ping Robot`; # From: name in PONG reply. Cannot be `PING`
[...]
# Do not set $myname to `PING`
if ( uc($myname) eq "PING" ) { die "ERROR: \\$myname cannot be PING"; }
# Check if message is netmail & addressed to PING (case insensitive)
if ( length($area) == 0 && uc($toname) eq "PING" ) {
[...]
I think this would do that.
It would accept a netmail addressed to "Ping" and also from "Ping".
If someone tried setting $myname to "Ping" the script would exit with an error.
The reply would be from "Ping Robot" to "Ping" which (if the remote system
has a ping robot) would trigger a response from that system, e.g:
From: Ping Robot & To: Ping Robot.
Jay
... A bee with a knife will give you a buzz cut
--- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
* Origin: Northern Realms (1:229/664)
SEEN-BY: 10/0 1 50/109 90/1 103/705 104/117 105/81
106/201 124/5016 128/187
SEEN-BY: 153/757 7715 154/10 214/22 218/0 1 601
700 840 860 870 880 930 221/1
SEEN-BY: 221/6 360 226/30 227/114 229/110 114 206
317 426 428 470 664 700
SEEN-BY: 266/512 282/1038 291/111 292/854 301/1
320/219 322/757 335/364
SEEN-BY: 341/66 234 342/200 396/45 452/28 166
460/58 463/68 467/888 633/280
SEEN-BY: 712/848 770/1 5000/111 5005/49 5010/352
5015/46 5020/715 828 846 848
SEEN-BY: 5020/1042 4441 12000 5030/49 1081 5053/51
5054/8 5061/133 5075/35
SEEN-BY: 5075/128 5083/444
@PATH: 229/664 426 218/700 840 221/6 5020/1042
4441