[GH-ISSUE #6258] [Question]: Difficulty entering Gemini even with warp #4251

Closed
opened 2026-10-31 20:38:17 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @roseshayan on GitHub (Aug 18, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6258

What are you trying to do?

Hello, I recently had a problem when I logged into Gemini with a VPN location in Germany and it gave me the error
Gemini isn’t currently supported in your country. Stay tuned!
If it wasn’t like this before, Warp is also enabled on my panel! What can I do to fix this?

What have you already tried?

No response

3x-ui version

3.6.0

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24

Screenshots or config snippets

No response

Before submitting

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
Originally created by @roseshayan on GitHub (Aug 18, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6258 ### What are you trying to do? Hello, I recently had a problem when I logged into Gemini with a VPN location in Germany and it gave me the error Gemini isn’t currently supported in your country. Stay tuned! If it wasn’t like this before, Warp is also enabled on my panel! What can I do to fix this? ### What have you already tried? _No response_ ### 3x-ui version 3.6.0 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24 ### Screenshots or config snippets _No response_ ### Before submitting - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
Author
Owner

@github-actions[bot] commented on GitHub (Aug 18, 2026):

That message comes from Google's geolocation of the IP that actually reaches Gemini; there is no Gemini-specific handling anywhere in 3x-ui. What the panel controls is which outbound serves those domains, and therefore which IP Gemini sees.

Two things from the source worth checking before anything else:

  • Registering WARP does not route any traffic by itself. UpdateWarpXraySetting (internal/web/service/xray_setting.go:121) only fills the private key, addresses, reserved bytes and peer endpoint into an outbound whose tag is exactly warp. The shipped template (internal/web/service/config.json) contains only the direct and blocked outbounds plus rules for the api inbound, private IPs and bittorrent. Unless one of your routing rules matches Gemini with "outboundTag": "warp", that traffic never goes through WARP.
  • Routing rules are evaluated top to bottom and the first match wins, so a broad rule above a specific one hides it.

Diagnosis in the panel:

  1. Xray → Routing → Route Tester: enter gemini.google.com as the domain, port 443, TCP, then Test Route. It asks the running core which outbound would handle the connection (/panel/api/xray/routeTest, backed by internal/xray/api.go:343) and reports the matched outbound.
  2. Xray → Outbounds: test the outbound that step 1 named. The result carries an egress trace fetched from https://cloudflare.com/cdn-cgi/trace and shows the exit country and whether WARP is on (internal/web/service/outbound/probe_http.go:63 and :675). That country is what Gemini geolocates, not the country of your server.

Depending on the outcome:

  • If step 1 says warp and step 2 shows an exit country Gemini does not serve, add a rule above the WARP rule so those domains leave through the server directly:
{ "type": "field", "domain": ["gemini.google.com", "generativelanguage.googleapis.com", "aistudio.google.com"], "outboundTag": "direct" }
  • If step 1 already says direct, WARP is not involved at all and it is the server's own IP that Gemini rejects. Routing those domains to warp is then the thing to try, but it only helps if the exit country reported in step 2 is one Gemini serves.

The WARP exit country is chosen by Cloudflare and is not settable from the panel: the WARP endpoint (internal/web/controller/xray_setting.go:47) exposes only get, del, config, reg, changeIP, license and updateInterval. Changing the WARP IP can land on a different exit, so re-running step 2 after a rotation is worth doing.

Finally, confirm the traffic really leaves via the server: if your client application has its own routing or split-tunnel rules, Gemini may bypass the tunnel entirely. Checking your apparent IP in the same browser profile you use for Gemini settles that.

Routing reference: docs/content/docs/en/operations/outbounds-routing.mdx.

If this does not resolve it, please post:

  1. The routing block and the tag list of your outbounds from Xray Settings (redact keys), so the matching rule can be identified.
  2. The matched outbound reported by the Route Tester for gemini.google.com and the exit country shown by the outbound test.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:5333025183 --> @github-actions[bot] commented on GitHub (Aug 18, 2026): That message comes from Google's geolocation of the IP that actually reaches Gemini; there is no Gemini-specific handling anywhere in 3x-ui. What the panel controls is which outbound serves those domains, and therefore which IP Gemini sees. Two things from the source worth checking before anything else: - Registering WARP does not route any traffic by itself. `UpdateWarpXraySetting` (`internal/web/service/xray_setting.go:121`) only fills the private key, addresses, `reserved` bytes and peer endpoint into an outbound whose tag is exactly `warp`. The shipped template (`internal/web/service/config.json`) contains only the `direct` and `blocked` outbounds plus rules for the api inbound, private IPs and bittorrent. Unless one of your routing rules matches Gemini with `"outboundTag": "warp"`, that traffic never goes through WARP. - Routing rules are evaluated top to bottom and the first match wins, so a broad rule above a specific one hides it. Diagnosis in the panel: 1. Xray → Routing → Route Tester: enter `gemini.google.com` as the domain, port `443`, TCP, then Test Route. It asks the running core which outbound would handle the connection (`/panel/api/xray/routeTest`, backed by `internal/xray/api.go:343`) and reports the matched outbound. 2. Xray → Outbounds: test the outbound that step 1 named. The result carries an egress trace fetched from `https://cloudflare.com/cdn-cgi/trace` and shows the exit country and whether WARP is on (`internal/web/service/outbound/probe_http.go:63` and `:675`). That country is what Gemini geolocates, not the country of your server. Depending on the outcome: - If step 1 says `warp` and step 2 shows an exit country Gemini does not serve, add a rule above the WARP rule so those domains leave through the server directly: ```json { "type": "field", "domain": ["gemini.google.com", "generativelanguage.googleapis.com", "aistudio.google.com"], "outboundTag": "direct" } ``` - If step 1 already says `direct`, WARP is not involved at all and it is the server's own IP that Gemini rejects. Routing those domains to `warp` is then the thing to try, but it only helps if the exit country reported in step 2 is one Gemini serves. The WARP exit country is chosen by Cloudflare and is not settable from the panel: the WARP endpoint (`internal/web/controller/xray_setting.go:47`) exposes only `get`, `del`, `config`, `reg`, `changeIP`, `license` and `updateInterval`. Changing the WARP IP can land on a different exit, so re-running step 2 after a rotation is worth doing. Finally, confirm the traffic really leaves via the server: if your client application has its own routing or split-tunnel rules, Gemini may bypass the tunnel entirely. Checking your apparent IP in the same browser profile you use for Gemini settles that. Routing reference: [docs/content/docs/en/operations/outbounds-routing.mdx](https://github.com/MHSanaei/3x-ui/blob/main/docs/content/docs/en/operations/outbounds-routing.mdx). If this does not resolve it, please post: 1. The `routing` block and the `tag` list of your `outbounds` from Xray Settings (redact keys), so the matching rule can be identified. 2. The matched outbound reported by the Route Tester for `gemini.google.com` and the exit country shown by the outbound test. *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@9en9i commented on GitHub (Sep 8, 2026):

I ran into the same issue. What worked for me was running a separate WARP client on the server in proxy mode and creating an outbound that points to it.

Interestingly, the built-in WARP worked fine for me on another server, but this time I couldn’t get the built-in implementation to work.

<!-- gh-comment-id:5592151287 --> @9en9i commented on GitHub (Sep 8, 2026): I ran into the same issue. What worked for me was running a separate WARP client on the server in proxy mode and creating an outbound that points to it. Interestingly, the built-in WARP worked fine for me on another server, but this time I couldn’t get the built-in implementation to work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4251
No description provided.