knock on Scientific Linux 6.1? (perl script for knocking?)

I have an OpenWrt router where I mounted knockd:

knockd.conf 
[options]
    logfile = /var/log/knockd.log

[openSSH]
    sequence    = 7000,8000,9000
    seq_timeout = 5
    command     = /usr/sbin/iptables -I INPUT -s %IP% -p tcp --dport 22 -j ACCEPT
    tcpflags    = syn

[closeSSH]
    sequence    = 9000,8000,7000
    seq_timeout = 5
    command     = /usr/sbin/iptables -D INPUT -s %IP% -p tcp --dport 22 -j ACCEPT
    tcpflags    = syn

and also I'm having a note pad with Scientific Linux 6.1 where I intend to knock. yet appears there isn't any kind of "knock" plan for SL 6.1.

Where can I get the RPM for the knock binary? (Or exist any kind of choices for knock? A perl manuscript possibly?)

1
2022-06-07 14:31:16
Source Share
Answers: 1

This can be performed with either celebration is /dev/tcp/host/port or netcat.

2
2022-06-07 16:15:29
Source