Лог с wb-rules:
Oct 02 22:05:48 wirenboard-A321 wb-rules[13597]: INFO: reloading file: /etc/wb-rules/alarm_rules_sms.js
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: *
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: *
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]:
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: Trying 149.154.167.220:443...
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: Trying 149.154.167.220:443...
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * Trying 149.154.167.220:443...
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * Trying 149.154.167.220:443...
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * Trying 149.154.167.220:443...
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * Connected to api.telegram.org (149.154.167.220) port 443 (#0)
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * Connected to api.telegram.org (149.154.167.220) port 443 (#0)
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: *
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: *
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]:
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: ALPN, offering h2
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: ALPN, offering h2
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: *
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: *
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]:
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: ALPN, offering http/1.1
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: ALPN, offering http/1.1
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * Connected to api.telegram.org (149.154.167.220) port 443 (#0)
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * ALPN, offering h2
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * ALPN, offering http/1.1
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * Connected to api.telegram.org (149.154.167.220) port 443 (#0)
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * ALPN, offering h2
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * ALPN, offering http/1.1
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * Connected to api.telegram.org (149.154.167.220) port 443 (#0)
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * ALPN, offering h2
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * ALPN, offering http/1.1
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * successfully set certificate verify locations:
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * CAfile: /etc/ssl/certs/ca-certificates.crt
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * CApath: /etc/ssl/certs
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: } [5 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * TLSv1.3 (OUT), TLS handshake, Client hello (1):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: } [512 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * successfully set certificate verify locations:
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * CAfile: /etc/ssl/certs/ca-certificates.crt
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * CApath: /etc/ssl/certs
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: } [5 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * TLSv1.3 (OUT), TLS handshake, Client hello (1):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: } [512 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * successfully set certificate verify locations:
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * CAfile: /etc/ssl/certs/ca-certificates.crt
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * CApath: /etc/ssl/certs
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: } [5 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * TLSv1.3 (OUT), TLS handshake, Client hello (1):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: } [512 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * successfully set certificate verify locations:
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * CAfile: /etc/ssl/certs/ca-certificates.crt
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * CApath: /etc/ssl/certs
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: } [5 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * TLSv1.3 (OUT), TLS handshake, Client hello (1):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: } [512 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * successfully set certificate verify locations:
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * CAfile: /etc/ssl/certs/ca-certificates.crt
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * CApath: /etc/ssl/certs
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: } [5 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * TLSv1.3 (OUT), TLS handshake, Client hello (1):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: } [512 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * TLSv1.3 (IN), TLS handshake, Server hello (2):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: { [122 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: { [6 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * TLSv1.3 (IN), TLS handshake, Certificate (11):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: { [698 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * TLSv1.3 (OUT), TLS alert, unknown CA (560):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: } [2 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * SSL certificate problem: self signed certificate
Oct 02 22:05:53 wirenboard-A321 wb-rules[15785]: * Closing connection 0
Oct 02 22:05:53 wirenboard-A321 wb-rules[13597]: ERROR: command '/bin/sh -c LANG=C.UTF-8 curl -s -v -X POST https://api.telegram.org/bot123:ABC/sendMessage --data-urlencode chat_id=-456 --data-urlencode text="Тестовое сообщение №4"' failed with exit status 60
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * TLSv1.3 (IN), TLS handshake, Server hello (2):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: { [122 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: { [6 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * TLSv1.3 (IN), TLS handshake, Certificate (11):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: { [698 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * TLSv1.3 (OUT), TLS alert, unknown CA (560):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: } [2 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * SSL certificate problem: self signed certificate
Oct 02 22:05:53 wirenboard-A321 wb-rules[15784]: * Closing connection 0
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * TLSv1.3 (IN), TLS handshake, Server hello (2):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: { [122 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: { [6 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * TLSv1.3 (IN), TLS handshake, Certificate (11):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: { [698 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * TLSv1.3 (OUT), TLS alert, unknown CA (560):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: } [2 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * SSL certificate problem: self signed certificate
Oct 02 22:05:53 wirenboard-A321 wb-rules[15781]: * Closing connection 0
Oct 02 22:05:53 wirenboard-A321 wb-rules[13597]: ERROR: command '/bin/sh -c LANG=C.UTF-8 curl -s -v -X POST https://api.telegram.org/bot123:ABC/sendMessage --data-urlencode chat_id=-456 --data-urlencode text="Тестовое сообщение №5"' failed with exit status 60
Oct 02 22:05:53 wirenboard-A321 wb-rules[13597]: ERROR: command '/bin/sh -c LANG=C.UTF-8 curl -s -v -X POST https://api.telegram.org/bot123:ABC/sendMessage --data-urlencode chat_id=-456 --data-urlencode text="Тестовое сообщение №1"' failed with exit status 60
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * TLSv1.3 (IN), TLS handshake, Server hello (2):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: { [122 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: { [6 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * TLSv1.3 (IN), TLS handshake, Certificate (11):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: { [698 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * TLSv1.3 (OUT), TLS alert, unknown CA (560):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: } [2 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * SSL certificate problem: self signed certificate
Oct 02 22:05:53 wirenboard-A321 wb-rules[15783]: * Closing connection 0
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * TLSv1.3 (IN), TLS handshake, Server hello (2):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: { [122 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: { [6 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * TLSv1.3 (IN), TLS handshake, Certificate (11):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: { [698 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * TLSv1.3 (OUT), TLS alert, unknown CA (560):
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: } [2 bytes data]
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * SSL certificate problem: self signed certificate
Oct 02 22:05:53 wirenboard-A321 wb-rules[15782]: * Closing connection 0
Oct 02 22:05:53 wirenboard-A321 wb-rules[13597]: ERROR: command '/bin/sh -c LANG=C.UTF-8 curl -s -v -X POST https://api.telegram.org/bot123:ABC/sendMessage --data-urlencode chat_id=-456 --data-urlencode text="Тестовое сообщение №2"' failed with exit status 60
Oct 02 22:05:53 wirenboard-A321 wb-rules[13597]: ERROR: command '/bin/sh -c LANG=C.UTF-8 curl -s -v -X POST https://api.telegram.org/bot123:ABC/sendMessage --data-urlencode chat_id=-456 --data-urlencode text="Тестовое сообщение №3"' failed with exit status 60
Вывод из консоли:
root@wirenboard-AGO7HF6L:~# curl -s -v -X POST https://api.telegram.org/bot123:ABC/sendMessage -d chat_id=-456 -d text="Test 02.10.2025 22:15"
* Uses proxy env variable https_proxy == 'http://*.*.*.*:3128/'
* Trying *.*.*.*:3128...
* Connected to *.*.*.* (*.*.*.*) port 3128 (#0)
* allocate connect buffer!
* Establish HTTP proxy tunnel to api.telegram.org:443
> CONNECT api.telegram.org:443 HTTP/1.1
> Host: api.telegram.org:443
> User-Agent: curl/7.74.0
> Proxy-Connection: Keep-Alive
>
< HTTP/1.0 200 Connection established
<
* Proxy replied 200 to CONNECT request
* CONNECT phase completed!
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CONNECT phase completed!
* CONNECT phase completed!
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=api.telegram.org
* start date: Mar 25 13:09:41 2025 GMT
* expire date: Apr 26 13:09:41 2026 GMT
* subjectAltName: host "api.telegram.org" matched cert's "api.telegram.org"
* issuer: C=US; ST=Arizona; L=Scottsdale; O=GoDaddy.com, Inc.; OU=http://certs.godaddy.com/repository/; CN=Go Daddy Secure Certificate Authority - G2
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x4c62c0)
> POST /bot123:ABC/sendMessage HTTP/2
> Host: api.telegram.org
> user-agent: curl/7.74.0
> accept: */*
> content-length: 49
> content-type: application/x-www-form-urlencoded
>
* We are completely uploaded and fine
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200
< server: nginx/1.18.0
< date: Thu, 02 Oct 2025 15:16:23 GMT
< content-type: application/json
< content-length: 451
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< access-control-allow-origin: *
< access-control-allow-methods: GET, POST, OPTIONS
< access-control-expose-headers: Content-Length,Content-Type,Date,Server,Connection
<
* Connection #0 to host *.*.*.* left intact
{"ok":true,"result":{"message_id":2543,"from":{"id":7604256657,"is_bot":true,"first_name":"\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0438\u043a \u0421\u0428 29","username":"wbsec29_bot"},"author_signature":"\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0438\u043a \u0421\u0428 29","chat":{"id":-456,"title":"\u041e\u0445\u0440\u0430\u043d\u0430 \u0421\u042829","type":"channel"},"date":1759418183,"text":"Test 02.10.2025 22:15"}}