14 lines
849 B
Bash
Executable File
14 lines
849 B
Bash
Executable File
#!/bin/bash
|
|
echo "=== PVE -> api.telegram.org (IPv4) ==="
|
|
curl -s -m 10 -4 -o /dev/null -w "code=%{http_code} tls_ok\n" https://api.telegram.org/ || echo "FAIL IPv4"
|
|
echo "=== PVE -> api.telegram.org (IPv6) ==="
|
|
curl -s -m 10 -6 -o /dev/null -w "code=%{http_code}\n" https://api.telegram.org/ 2>/dev/null || echo "FAIL IPv6 (нет маршрута или сброс)"
|
|
|
|
echo "=== CT108 -> api.telegram.org (IPv4) ==="
|
|
pct exec 108 -- curl -s -m 10 -4 -o /dev/null -w "code=%{http_code} tls_ok\n" https://api.telegram.org/ || echo "FAIL IPv4"
|
|
echo "=== CT108 -> api.telegram.org (IPv6) ==="
|
|
pct exec 108 -- curl -s -m 10 -6 -o /dev/null -w "code=%{http_code}\n" https://api.telegram.org/ 2>/dev/null || echo "FAIL IPv6"
|
|
|
|
echo "=== CT108: есть ли IPv6 адрес ==="
|
|
pct exec 108 -- ip -6 addr show scope global | head -3 || echo "IPv6 нет"
|