You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proxy/tun/README.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ TUN interface support bridges the gap between network layer 3 and layer 7, intro
4
4
5
5
This functionality is targeted to assist applications/end devices that don't have proxy support, or can't run external applications (like Smart TV's). Making it possible to run Xray proxy right on network edge devices (routers) with support to route raw network traffic. \
6
6
Primary targets are Linux based router devices. Like most popular OpenWRT option. \
7
-
Although support for Windows is also implemented (see below).
7
+
Support for Windows, macOS, and iOS is also implemented (see below).
Important to remember that everything written above about Linux routing concept, also apply to Mac OS X. If you simply route default route through utun interface, that will result network loop and immediate network failure.
197
+
198
+
## iOS SUPPORT
199
+
200
+
iOS uses the same utun packet format as macOS, but the file descriptor is provided by NetworkExtension instead of being created by Xray.
201
+
202
+
Set the environment variable `xray.tun.fd` (or `XRAY_TUN_FD`) to the fd number before starting Xray:
0 commit comments