USB tethering on openSUSE Leap 16.0: rndis_host is deny-listed

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.

1 Like

@jgrebosz Hi and welcome to the Forum :smile:
Yes, expected behavior, see https://en.opensuse.org/SDB:FilesystemBlacklisting

That is overkill and possibly more of a security risk; commenting # blacklist rndis_host makes the module load automatically whenever it detects such an interface, e.g. from an usb connected phone.

Several similar threads in the Forums, a simple search will find them.

Dear OrsoBruno!
Thank you for the clarification! You’re right — loading the module unconditionally at boot is unnecessary. I’ll remove /etc/modules-load.d/rndis_host.conf and keep only the blacklist override.
Thank you! After removal - it works also!
Jurek

tested successfully the command
modprobe rndis_host
on an opensuse Leap 16.1 desktop and could immediately connect to the internet, since the NetworkManager detected to USB-Tethering connection.
In the command terminal I even received the question whether I wanted to un-blacklist
rndis_host
permanently…

tippe oder füge den Code hier ein