Good morning community,
I’m writing to share some of my experiences because although I’m not completely finished yet, I had several “breakthroughs” over the weekend.
Maybe some of you could help me with the final issues to wrap it up. 
First of all, the Delock-Adapter I bought is pretty cool because it has a built-in Sim-Card-Slot.
https://www.delock.de/produkt/63384/merkmale.html?g=2455
With this thing it could be possible to put a M.2-WWAN-module in the J15-Slot of the Apu-Boards, which is originally “full miniPCI express, but no SIM, intended for wifi”. Obviously you would have to do without the WiFi-Module then but for someone who has a WWAN-module which is not USB-based, it could work. But that’s just speculation. 
Back to my case:
After a lot of reading about WWAN-modules, Linux-librarys and even AT-Commands, I realized that the Fibocom-L830 I use does not “talk” qmi but mbim instead. So I build IPFire from source (took me a couple of compilations to figure out the best way
) and smuggled the libmbim into it.
https://www.freedesktop.org/wiki/Software/libmbim/
At last, the implementation is pretty easy because “libmbim” works almost exactly like “libqmi” which already is in IPFire. Even the compiling works the same way and so I completely “orientated” at the libqmi: I took the libqmi-LFS Template and did just little adjusting (name, version, b2-checksum) and even copied the libmbim-“rootfile” directly in the “common”-folder where the one for libqmi is located. I did a back-up of all the modified files, so now I can implement it with the first compiling, which saves a lot of time. 
But maybe, just maybe, if the developers are super super super cool, they could put this libary in the standard branch of IPFire and make an addition to the “dial-up”-screen, so that “mbim” is included in the drop-down-menu. Heck, I would do it myself but unfortunately I’m just a network technician and no software engineer. 
But back to my case:
So now I have my “own” IPFire-build with libmbim implemented and the module itself works like a charm. Connection to the provider, IP-adress acclaimed, everything worked out fine but I stumbled across some new problems and maybe you could help me with that.
- WWAN-modules only have a “dynamically generated” MAC-adress (at least that’s what I read on the web). Because of this it changes the MAC-adress at every reboot and IPFire loses the interface for the RED zone. It’s not a big issue but after every reboot you have to connect to IPFire per SSH and do a “setup” to allocate the “new” WWAN-interface to RED.
My question here is: What is the command to do this directly (without the way through the setup-menu) because I would like to write a “script” to automate this.
- When mbim connects the WWAN-module and gets an IP-adress, obviously this is not the IP-adress of the red-interface yet and you have to assign it manually.
Could someone please “show me” which commands or script is triggered when you do a dial-up-connection via QMI? I would like to copy this and adjust it for a connection via libmbim. It would make things so much easier.
- Last but not least I had to assign not only an IP-adress to the red interface, but also a gateway and a DNS-server so that the IPFire could find it’s way outside. Unfortunately that was not enough. The firewall itself could ping IPs and Domains but none of the connected PCs could. It also did not connect the DNS-servers in the WUI because it would not find any (not even the ones from the ISP).
What am I missing here?
So much from me, I hope I did not bore you too much.
Greetings and have a nice day
Alex