FAQ
Linux: how do I enable the virtual network adapter (TUN) with sudo if I don't know an admin password? 
The first time you turn on the virtual network adapter (TUN) in the Linux app, it needs administrator rights and asks you to "enter the admin password". The app then uses sudo to authorize the 5UF core (it makes root the owner and adds the setuid bit), after which the core can create the virtual adapter.
Which password is this?
The password is passed to sudo, so on Ubuntu, Debian and most other systems it's your own login password, not the root password. If you normally run sudo with your own password, just enter it in the dialog.
When do you need the command line?
• On a company or school computer where sudo is set up without a password (NOPASSWD); the dialog won't accept an empty password.
• You don't know any administrator password, but you're allowed to use sudo or sudo -i to become root.
• The dialog keeps saying the password is wrong.
In these cases you can authorize the core yourself in a terminal. Afterwards the app sees it as authorized and won't ask for a password again.
Steps (deb / rpm packages):
1. Quit 5UF VPN completely (choose Quit from the tray icon).
2. Open a terminal and run these two commands. The packages install the core at /usr/share/wufclub/5UFClashCore:
sudo chown root:root /usr/share/wufclub/5UFClashCore sudo chmod +sx /usr/share/wufclub/5UFClashCore
If you've already switched to root with sudo -i or sudo su -, run them without the leading sudo.
3. Check the result:
stat -c '%U:%G %A' /usr/share/wufclub/5UFClashCore
Output like root:root -rwsr-sr-x (starting with root and containing rws) means it worked.
4. Open 5UF VPN again, choose "Tun" or "System proxy+TUN" mode in Settings and connect. It won't ask for a password any more.
Can't find the file? Use these commands to locate the core, then use that path in the commands above:
dirname "$(readlink -f "$(command -v wufclub)")" sudo find / -name 5UFClashCore -type f 2>/dev/null
AppImage: an AppImage is mounted read-only while it runs, so the core inside it can't be authorized. If you need the virtual adapter, we recommend the deb or rpm package instead. Alternatively, run ./5UF_VPN-xxx.AppImage --appimage-extract, run the two commands above on 5UFClashCore inside the extracted squashfs-root folder, then start squashfs-root/AppRun.
Notes:
• After every upgrade or reinstall the core file is replaced and loses the setuid bit, so run the commands again (or enter the password in the dialog).
• Once authorized, the core runs with root rights, which is required to create the virtual adapter. Only do this on computers you trust, and on a company computer, ask your administrator first.
• To undo it, run sudo chmod -s /usr/share/wufclub/5UFClashCore.
• If you don't need the virtual adapter, System proxy mode needs no administrator rights, although programs that ignore the system proxy won't go through the VPN.
TUN Mode vs System Proxy 
- TUN mode creates a virtual network adapter on your device, intercepting and forwarding all traffic at the network (IP) layer. This ensures that all apps and services — even those that don’t support proxy settings — are routed through the VPN.
- Advantage → Full system coverage for all traffic.
- Limitation → Because it works at the routing level, connections may be less stable under certain devices or network environments.
- By attaching your system’s HTTP proxy directly to the VPN service, System Proxy offers a more stable and consistent connection.
- Advantage → Smooth, reliable, and stable performance.
- Limitation → Because some apps and websites do not support proxy mode, they may still be blocked in certain situations.
What is the difference between Global mode and Partial mode? 
In 5UF VPN, Global mode and Partial mode describe how much of your traffic goes through the VPN.
Global mode:
- Most system traffic goes through the VPN.
- Good for users who want a more consistent VPN route.
- Also more suitable for apps that do not support proxy mode well.
Partial mode:
- Only selected websites, apps, or rule-based traffic goes through the VPN.
- Other traffic continues to use the local network directly.
- Useful when you only want specific traffic to use the VPN.
How should you choose?
- If you are not sure, Global mode is usually the simpler starting point.
- If you only want a small part of traffic to use the VPN, choose Partial mode.
The naming may vary slightly on different platforms, but the core idea is the same.




