USB tethering on openSUSE Leap 16.0: rndis_host is deny-listed
I have successfully enabled USB tethering on openSUSE Leap 16.0 using a Motorola moto g85 5G smartphone. I am sharing the steps in case they help other Leap 16.0 users.
Symptoms
When USB tethering was enabled on the phone, the phone was detected by lsusb, but no network interface appeared in NetworkManager.
The following command fixed the problem temporarily:
sudo modprobe rndis_host
After running it, the USB network interface enp0s20u5 appeared and NetworkManager established a connection.
However, the module was not loaded automatically after reboot.
Diagnosis
The system journal showed:
Module 'rndis_host' is deny-listed (by kmod)
The relevant rule was found in:
/usr/lib/modprobe.d/50-blacklist-rndis.conf
The file contained:
blacklist rndis_wlan
blacklist usb_f_rndis
blacklist rndis_host
Solution
I created a local copy of the configuration file:
sudo cp /usr/lib/modprobe.d/50-blacklist-rndis.conf \
/etc/modprobe.d/50-blacklist-rndis.conf
I then commented out the rndis_host blacklist entry in the local copy, leaving the other two entries unchanged.
The resulting file contained:
blacklist rndis_wlan
blacklist usb_f_rndis
# blacklist rndis_host
I also created /etc/modules-load.d/rndis_host.conf containing:
rndis_host
After rebooting, the USB network interface appeared automatically. NetworkManager initially showed connecting (getting IP configuration) and subsequently changed to connected. Toggling USB tethering on the phone also left the connection in the connected state.
Security note
The original blacklist includes a comment explaining that RNDIS is considered insecure. Enabling this module is therefore a deliberate security trade-off. I recommend using USB tethering only with a trusted phone and USB connection.
Environment
- OS: openSUSE Leap 16.0
- Phone: Motorola moto g85 5G
- USB network interface:
enp0s20u5 - Driver:
rndis_host
I would be interested to know whether this behaviour is expected in Leap 16.0 and whether the security rationale and workaround could be documented for users who need USB tethering.