Перейти к содержанию

Проверяем доступность IRC-службы по IPv6

В Linux-shell:

for i in $(host irc.libera.chat | awk '/has IPv6 address/ { print $5; }') ; do nc -w 10 -Nvvv $i 6697 < /dev/null ; sleep 5 ; done
Connection to 2001:5a0:3604:1:64:86:243:186 6697 port [tcp/ircs-u] succeeded!
Connection to 2001:470:1:dea::95 6697 port [tcp/ircs-u] succeeded!
Connection to 2607:5300:205:300::ae0 6697 port [tcp/ircs-u] succeeded!

Для сравнения, доступность IRC-сети RUSNET по IPv6 выглядит намного скромней:

for i in $(host irc6.rusnet.org.ru | awk '/has IPv6 address/ { print $5; }') ; do nc -w 10 -Nvvv $i 9996 < /dev/null ; sleep 5 ; done
nc: connect to 2001:470:7808::4 port 9996 (tcp) timed out: Operation now in progress
nc: connect to 2a00:d880:0:4::6 port 9996 (tcp) timed out: Operation now in progress
Connection to 2001:b08:4:2::9 9996 port [tcp/*] succeeded!
nc: connect to 2001:5c0:1400:b::fd port 9996 (tcp) timed out: Operation now in progress
nc: connect to 2001:470:79be::6 port 9996 (tcp) timed out: Operation now in progress
nc: connect to 2a03:c700::4:0:4 port 9996 (tcp) timed out: Operation now in progress
nc: connect to 2a02:978:5::bebe port 9996 (tcp) timed out: Operation now in progress

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *