-
Notifications
You must be signed in to change notification settings - Fork 110
TUN Mode
- Windows
- macOS
- Linux (since version 0.6.0)
- Download
wintun.dllfrom here and put it inC:\Windows\System32\. - Launch application with Adminstrator privilege. Enable
TUN Modein settings.
Note
Since version 0.6.0:
You can use built-in "Restart The Application As Administrator" entry in "Tools" menu which is much more convenient.
- No other dependency required. Launch application via
sudo Furious-GUI. EnableTUN Modein settings.
Note
Since version 0.6.0:
You can use built-in "Restart The Application As Superuser" entry in "Tools" menu which is much more convenient.
Warning
After launching the application as Superuser on macOS, some shortcuts are not working, e.g. copy & paste config.
- TUN mode is available in non-superuser mode, but requires privileged script execution during connection process. You need to enter the superuser password as prompted to connect successfully in TUN mode.
Warning
Under TUN mode, current routing option should not contain direct rules, otherwise a connection loop would occur:
traffic -> TUN -> Core -> direct rules -> TUN -> Core -> direct rules -> ...
You can use:
- Built-in
Globalrouting option, meaning it does not have direct rules and will proxy all traffic.
Note
Since version 0.6.0:
The application will ask if you want to switch to global mode and reconnect.
To verify that TUN mode is working properly, try initiating direct connection from your apps or games.
Here are some basic examples using curl:
curl icanhazip.com
Verify that you get your server IP as response.
Prior to version 0.5.0, the TUN settings needed to properly configure the system were automatically set by the application in a hard-coded manner. Now, I have designed them to be configurable through a GUI window to provide more flexibility.
Note
In most cases the automatic settings will work just fine
However, there are some situations that the automatic settings cannot handle. I will list some of them below:
You have more than one network card installed on your computer and the application cannot determine which one should be used as the primary interface. In this case, you need to provide the correct settings manually.
The automatic settings will fail on some older operating systems, such as Windows 7. By manually providing the TUN settings, I was able to run TUN mode successfully during win7 testing.

Optimize the memory usage for best performance. See https://github.com/xjasonlyu/tun2socks/wiki/Memory-Optimization