[GH-ISSUE #958] Split-tunneling doesn't work on iOS with Xray #291

Open
opened 2026-10-13 20:18:01 +00:00 by bsakaguchi · 11 comments
Owner

Originally created by @nenkoru on GitHub (Aug 9, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/958

Describe the bug
Split-tunneling doesn't work on iOS with Xray

To Reproduce
Steps to reproduce the behavior:

  • Enable split-tunneling on iOS
  • Add some ip netblocks(eg [1])
  • Select XRay as a protocol
  • Connect
  • Open the website not from the netblock that is supposed to do not go through the tunnel(ifconfig.me for eg)

Expected behavior
A website which netblock is not in the list should be opened via a direct connection

Smartphone:

  • Device: iPhone 12 mini
  • OS: iOS 17.4.1
  • Version: 4.6.0.4

Additional context
[1] https://github.com/nenkoru/amnezia_split_tunnel/releases/download/2024-08-09/split_tunneling_amnezia.json
This one includes Google, Facebook, Twitter netblocks. When openning ifconfig.me or 2ip.ru from iphone you could clearly see the ip address of the remote server that the tunnel goes through.

The issue is not reproduced when using AmneziaWG, it behaves as expected(ifconfig.me shows an ip address of the direct connection not the tunneled one)

Originally created by @nenkoru on GitHub (Aug 9, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/958 **Describe the bug** Split-tunneling doesn't work on iOS with Xray **To Reproduce** Steps to reproduce the behavior: - Enable split-tunneling on iOS - Add some ip netblocks(eg [1]) - Select XRay as a protocol - Connect - Open the website not from the netblock that is supposed to do not go through the tunnel(ifconfig.me for eg) **Expected behavior** A website which netblock is not in the list should be opened via a direct connection **Smartphone:** - Device: iPhone 12 mini - OS: iOS 17.4.1 - Version: 4.6.0.4 **Additional context** [1] https://github.com/nenkoru/amnezia_split_tunnel/releases/download/2024-08-09/split_tunneling_amnezia.json This one includes Google, Facebook, Twitter netblocks. When openning ifconfig.me or 2ip.ru from iphone you could clearly see the ip address of the remote server that the tunnel goes through. The issue is not reproduced when using AmneziaWG, it behaves as expected(ifconfig.me shows an ip address of the direct connection not the tunneled one)
Author
Owner

@nenkoru commented on GitHub (Aug 9, 2024):

output

A gif showing exactly that behaviour. Notice that with AmneziaWG ifconfig.me shows the ip address of a VPS and 2ip.ru shows the ip address of the direct connection. But with XRay it shows ip of a VPS for both 2ip.ru and ifconfig.me

<!-- gh-comment-id:2278516886 --> @nenkoru commented on GitHub (Aug 9, 2024): ![output](https://github.com/user-attachments/assets/f2be4f2b-09e1-4eb6-a31d-e3654be4130d) A gif showing exactly that behaviour. Notice that with AmneziaWG ifconfig.me shows the ip address of a VPS and 2ip.ru shows the ip address of the direct connection. But with XRay it shows ip of a VPS for both 2ip.ru and ifconfig.me
Author
Owner

@yarovikov commented on GitHub (Aug 11, 2024):

I can confirm. On Mac OS Sonoma too

<!-- gh-comment-id:2282642154 --> @yarovikov commented on GitHub (Aug 11, 2024): I can confirm. On Mac OS Sonoma too
Author
Owner

@lexfreedomcom commented on GitHub (Aug 15, 2024):

The same on my Mac OS Sonoma. After rebooting system apps starts crashing and closing...

#976

<!-- gh-comment-id:2290956207 --> @lexfreedomcom commented on GitHub (Aug 15, 2024): The same on my Mac OS Sonoma. After rebooting system apps starts crashing and closing... #976
Author
Owner

@eugene-egorov commented on GitHub (Sep 4, 2024):

тоже крашится. окно на мгновение появляется и пропадает. процесс висит в диспетчере. тоже похоже нажал на раздельное туннелирование. переустановка не помогает

<!-- gh-comment-id:2330273081 --> @eugene-egorov commented on GitHub (Sep 4, 2024): тоже крашится. окно на мгновение появляется и пропадает. процесс висит в диспетчере. тоже похоже нажал на раздельное туннелирование. переустановка не помогает
Author
Owner

@mrdrprofuroboros commented on GitHub (Sep 16, 2024):

confirming for iOS 17.6.1
works fine on macOS Sonoma 14.5 though

<!-- gh-comment-id:2353794788 --> @mrdrprofuroboros commented on GitHub (Sep 16, 2024): confirming for iOS 17.6.1 works fine on macOS Sonoma 14.5 though
Author
Owner

@jstted commented on GitHub (Sep 28, 2024):

Experiencing the same issue on iOS 18.0 with version 4.6.0.4. However, it works fine on macOS 15.0 with version 4.7.0.0. Hopefully, the next release for iOS will resolve this problem

<!-- gh-comment-id:2380892492 --> @jstted commented on GitHub (Sep 28, 2024): Experiencing the same issue on iOS 18.0 with version 4.6.0.4. However, it works fine on macOS 15.0 with version 4.7.0.0. Hopefully, the next release for iOS will resolve this problem
Author
Owner

@EntonyHop commented on GitHub (Nov 5, 2024):

Same issue ipad Os 18.1

<!-- gh-comment-id:2458023930 --> @EntonyHop commented on GitHub (Nov 5, 2024): Same issue ipad Os 18.1
Author
Owner

@zlnndm commented on GitHub (Apr 28, 2025):

Me too... What can I do?

<!-- gh-comment-id:2834390853 --> @zlnndm commented on GitHub (Apr 28, 2025): Me too... What can I do?
Author
Owner

@dmitryd commented on GitHub (Dec 26, 2025):

This is still the issue, just hit this today. To reproduce:

  1. Add 194.67.0.0/18 to the excluded list (one of russian subnets)
  2. Connect to your Xray server
  3. Go to https://www.reg.ru/web-tools/myip (host ip address is 194.67.72.31)
  4. See your server IP address instead of your local address
<!-- gh-comment-id:3692990292 --> @dmitryd commented on GitHub (Dec 26, 2025): This is still the issue, just hit this today. To reproduce: 1. Add 194.67.0.0/18 to the excluded list (one of russian subnets) 2. Connect to your Xray server 3. Go to https://www.reg.ru/web-tools/myip (host ip address is 194.67.72.31) 4. See your server IP address instead of your local address
Author
Owner

@evgenbal commented on GitHub (Apr 6, 2026):

Same issue. Any updates?

<!-- gh-comment-id:4195187131 --> @evgenbal commented on GitHub (Apr 6, 2026): Same issue. Any updates?
Author
Owner

@Jendozz commented on GitHub (Apr 12, 2026):

Same issue. Amnezia v4.8.14.3, ios v26.3.1

<!-- gh-comment-id:4231650789 --> @Jendozz commented on GitHub (Apr 12, 2026): Same issue. Amnezia v4.8.14.3, ios v26.3.1
Sign in to join this conversation.
No labels
pull-request
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
amnezia-vpn/amnezia-client#291
No description provided.