The reason telnet works while curl is denied is that telnet only tests the TCP handshake, not actual application-layer traffic. When you run telnet example.com 443, it opens a TCP connection, which the firewall allows, so no deny logs appear. In contrast, curl https://example.com sends a full HTTPS request (TLS handshake + HTTP headers), which is subject to the firewall’s application or network rules for actual HTTPS traffic. If the firewall blocks HTTPS requests from 192.168.1.1, curl fails and a deny log is generated, even though the underlying TCP connection would succeed.
In short, telnet only tests TCP connectivity while curl tests real HTTPS traffic, which can be blocked by the firewall.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin