Using 4G Aircard in Linux

Some usb aircards I tested (link) do not work out of the box with Linux (OpenSUSE Tumbleweed kernel 6.8-6.9). After some research I found that the ‘rndis_host’ kernel module is blacklisted by default due to security reason. However many device manufaturers still use it for compatibility with Windows.

The module is blacklisted in /usr/lib/modprobe.d/50-blacklist-rndis.conf.

PLAINTEXT
# RNDIS is considered insecure (bsc#1205767, jsc#PED-5731)
blacklist rndis_wlan
blacklist usb_f_rndis
blacklist rndis_host
Click to expand and view more

Workaround

There are 2 ways to make rndis devices work with Linux.

  1. Remove ‘rndis_host’ from being blacklisted.
SH
$ sudo ln -s /dev/null /etc/modprobe.d/50-blacklist-rndis.conf
Click to expand and view more

or 2. Create a udev rule per device to load ‘rndis_host’ module as device is plugged in. Create a file at ’/etc/udev/rules.d/99-rndis-host.rules’ with the content:

PLAINTEXT
#D-Link DWR-910M
ATTR{idVendor}=="1782", ATTR{idProduct}=="000c", RUN+="/sbin/modprobe rndis_host"
Click to expand and view more

Change “vendor id” and “product id” to be ids of the device.

D-Link aircard requires rndis_host module.

DWR-910M

Copyright Notice

Author: Vorasilp K.

Link: https://vorasilp.xom/posts/using-4g-aircard-in-linux/

License: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut