Whitelisting Requirements

IP addresses, domains, ports, and proxy settings your network and email teams need to whitelist for Leena AI integrations, the virtual assistant, and email delivery.

Last updated August 2026

Use this page to configure your firewalls, proxies, and mail servers so Leena AI can reach your enterprise systems, your employees can reach Leena AI, and Leena AI emails are delivered.

📘

Who should read this?

This page is written for IT, network, and security teams setting up or maintaining a Leena AI deployment. Leena AI updates its infrastructure regularly, so check the date at the top of this page when you review your rules.

What to whitelist

Traffic between your environment and Leena AI flows in three directions. Each one needs a different set of rules.

DirectionWhat it coversWhat you whitelistSection
Inbound (Leena AI → your systems)API calls from Leena AI to your HRIS, ITSM, identity provider, and other enterprise systemsNAT gateway IPs for your hosting region1. Inbound traffic
Outbound (your network → Leena AI)Employees using the virtual assistant on web, desktop, or mobileLeena AI domains (or Cloudflare IP ranges), ports, and proxy settings2. Outbound traffic
Email (Leena AI → your mail server)Notifications, transactional emails, and calendar invitesSending domain, sender IPs, or NAT gateway IPs3. Email
⚠️

Don't mix up inbound and outbound IPs

NAT gateway IPs are for inbound traffic only. Cloudflare IP ranges are for outbound traffic only. Using Cloudflare IPs to whitelist Leena AI integrations won't work.


1. Inbound traffic

From Leena AI to your infrastructure

Leena AI calls your enterprise systems (HRIS, ITSM, identity providers, and others) from fixed NAT gateway IP addresses. Whitelist all the IPs for the region where your Leena AI deployment is hosted.

RegionNAT gateway IPs
India35.154.161.143, 35.154.184.150, 35.154.78.157
United States3.209.125.22, 3.224.225.127, 100.27.55.182, 44.223.247.16
Europe — West34.252.185.234, 54.194.178.85, 52.215.107.148
Europe — Central3.123.174.31, 3.65.143.196, 52.29.90.234
Middle East3.29.11.117, 3.28.166.75, 3.29.11.95
Southeast Asia3.0.203.167, 18.143.250.85, 13.251.228.173
Canada4.172.36.23, 4.172.67.227
Qatar4.244.138.249, 4.170.16.41

If you don't know which region your organization is hosted in, ask your Leena AI Customer Success Manager.


2. Outbound traffic

From your network to Leena AI

Employees reach the Leena AI virtual assistant through the web, desktop app, and mobile app. All Leena AI web traffic sits behind the Cloudflare WAF (web application firewall): users connect to Cloudflare's edge network, which forwards requests to Leena AI's origin servers. You never need to whitelist Leena AI's origin servers directly.

Complete each step below.

2.1 Allow Leena AI domains

Use FQDN (domain-based) rules. Leena AI recommends this approach because Cloudflare IP rotation doesn't affect it. All major enterprise firewalls support FQDN rules natively, including Palo Alto, Zscaler, Fortinet, Check Point, and Cisco.

DomainPurpose
leena.aiLeena AI website and primary application domain
*.leena.aiLeena AI services: integration, workflow, and engagement APIs, and object storage
acrobatservices.adobe.comAdobe PDF Embed API SDK and viewer, which display PDFs
documentservices.adobe.comLegacy Adobe PDF Embed API URL (redirects to acrobatservices.adobe.com)
*.s3.amazonaws.comLeena AI asset storage for images, videos, and PDFs (scoped to S3 only)

If your firewall can't filter by domain, use the Cloudflare IP ranges in Fallback: Cloudflare IP ranges instead.

Fallback: Cloudflare IP ranges

Use this option only if your firewall doesn't support FQDN rules. These are Cloudflare's official published ranges. You can confirm them at cloudflare.com/ips.

103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
104.16.0.0/13
104.24.0.0/14
108.162.192.0/18
131.0.72.0/22
141.101.64.0/18
162.158.0.0/15
172.64.0.0/13
173.245.48.0/20
188.114.96.0/20
190.93.240.0/20
197.234.240.0/22
198.41.128.0/17
⚠️

Individual IPs aren't supported for outbound traffic

Cloudflare uses anycast routing, so traffic can come from any IP in its published ranges, and individual IPs change without notice. Whitelist the full CIDR ranges above. If your firewall supports neither FQDN rules nor CIDR ranges, contact [email protected] to discuss alternatives.

2.2 Open ports

PortProtocolWhen it's needed
443HTTPSAlways required. Also carries WebSocket (wss://) and streaming traffic.
80HTTPOptional. Redirects to HTTPS.
22SFTPOnly if Leena AI exchanges files with your HRIS over SFTP

2.3 Preserve WebSocket headers

The Leena AI chat uses WebSocket connections (wss://) on port 443 for real-time communication. Some proxies and firewalls strip WebSocket headers from outbound requests, which breaks the connection. Configure your proxy to pass these headers through unchanged:

  • Connection
  • Upgrade
  • Sec-WebSocket-Extensions
  • Sec-WebSocket-Key
  • Sec-WebSocket-Protocol
  • Sec-WebSocket-Version

2.4 Allow streaming responses

Leena AI streams assistant replies to the user as it generates them. It uses Server-Sent Events (SSE), a long-lived HTTPS connection with the content type text/event-stream. Streaming uses the domains and port you've already allowed, so you don't need any extra firewall rules.

Proxies that buffer, transform, or time out long-lived responses can still break streaming. Make sure your proxy meets these requirements:

RequirementWhat to configure
Long-lived connectionsSet proxy idle and read timeouts to at least 60 seconds. A streaming response stays open for the full reply. It can also stay open between turns of a conversation. Leena AI sends keep-alive comment frames every 5 seconds to keep the connection active.
No response bufferingForward response bytes as they arrive. Leena AI sends Cache-Control: no-cache, no-transform and X-Accel-Buffering: no. Your proxy must honor these headers and must not strip them.
No response transformationDon't let content inspection, DLP, or optimization tools re-compress, re-chunk, or rewrite text/event-stream responses.
Request header pass-throughPreserve Accept, Authorization, and Last-Event-ID. The client uses Last-Event-ID to resume an interrupted stream. If your proxy strips this header, replies can show duplicated or missing content.

Recommended: add *.leena.ai to the streaming or no-buffering bypass list in your web proxy or SASE platform, such as Zscaler, Netskope, Palo Alto Prisma, Cisco Umbrella, or Forcepoint.

Signs that a proxy is interfering with streaming:

  • Replies appear all at once after a long pause instead of building up word by word.
  • Users see "Response interrupted" or "connection lost" messages during a reply.
  • The chat hangs on a loading indicator, then recovers or shows an error.

For vendor-specific settings and steps to diagnose the problem in the browser, see Network Requirements for Streaming Responses.

2.5 Configure TLS and SSL inspection

All Leena AI endpoints require TLS 1.2 or higher. Leena AI doesn't support TLS 1.0 or 1.1.

An SSL-inspecting proxy, such as Zscaler, Palo Alto Prisma, or Cisco Umbrella, can cause WebSocket and streaming connections to Leena AI to fail. To prevent this:

  1. Bypass SSL inspection for *.leena.ai.
  2. If your proxy re-signs certificates, make sure devices running the Leena AI client trust the proxy's root CA (certificate authority).

If connections still fail behind an SSL-inspecting proxy, contact [email protected].


3. Email

From Leena AI to your mail infrastructure

Leena AI sends notifications, transactional emails, and calendar invites to your employees. Use domain-based authentication if you can. Use IP whitelisting only if you can't.

3.1 Recommended: domain-based authentication

Leena AI can send email from a domain or subdomain you own (for example, @leena.yourcompanydomain.com) through enterprise-grade email service providers. Your mail servers can then verify these messages with:

  • SPF (Sender Policy Framework)
  • DKIM (DomainKeys Identified Mail)
  • DMARC (Domain-based Message Authentication, Reporting & Conformance)

Domain authentication reduces spoofing risk and improves inbox placement without depending on static IP whitelists. To set it up, see Sendgrid setup or Mailgun setup.

3.2 Alternative: IP whitelisting

Leena AI sends email through two paths. Whitelist the IPs for every path you use.

PathUsed forSource IPsDestination port on your side
A: Mailgun / SendGridNotifications and transactional email69.72.40.35, 149.72.71.225 (same for all regions)Standard SMTP: 25, 587, or 465
B: Microsoft Graph API (Outlook)Emails and calendar invites from Outlook integrationsNAT gateway IPs for your region (see 1. Inbound traffic)None. Leena AI calls Microsoft Graph over HTTPS 443, and Microsoft delivers the email to your mail server.
📘

Filtering by source port?

Mailgun and SendGrid connect from ephemeral (random) source ports. If your firewall filters by source port, allow all source ports from the Path A IPs to your SMTP destination ports.

3.3 Allow third-party sender addresses

Leena AI also sends some email from third-party systems. Add these sender addresses to your whitelist:


FAQ

Which IPs do I whitelist so Leena AI can connect to our HRIS, ITSM, or identity provider?
The NAT gateway IPs for your hosting region, listed in 1. Inbound traffic. Don't use the Cloudflare IPs for this. They cover the opposite direction: your employees reaching Leena AI.

Can I whitelist a single Cloudflare IP instead of the full ranges?
No. Cloudflare uses anycast routing, so traffic can come from any IP in its ranges. Individual IPs also change without notice. Use FQDN rules, or whitelist the full CIDR ranges in 2.1 Allow Leena AI domains.

Do I need to whitelist both Cloudflare IPs and Leena AI origin IPs?
No. Leena AI's origin servers aren't directly exposed. For outbound traffic, whitelist the Leena AI domains or Cloudflare's ranges. For inbound traffic, whitelist the NAT gateway IPs.

Our proxy does SSL inspection. Will Leena AI work?
SSL inspection can break WebSocket and streaming connections. It can also cause certificate errors. Bypass SSL inspection for *.leena.ai, or make sure the Leena AI client trusts your proxy's root CA. See 2.5 Configure TLS and SSL inspection.

Why do I need NAT gateway IPs for email?
Only if you use Outlook or Microsoft Graph API email integrations. Leena AI calls the Graph API from its NAT gateway IPs, and Microsoft then delivers the email. Mailgun and SendGrid use their own dedicated IPs. See 3.2 Alternative: IP whitelisting.

Streaming replies are delayed or appear all at once. What should we check?
The usual cause is a proxy that buffers the response, not a connectivity problem. Confirm that your proxy forwards text/event-stream responses without buffering, keeps the no-transform and X-Accel-Buffering headers, and allows idle connections of at least 60 seconds. See 2.4 Allow streaming responses.

Who do I contact with questions?
Email [email protected] or contact your Leena AI Customer Success Manager. Include your firewall or proxy vendor and your hosting region.


Did this page help you?