I’m using a EM7355 with a raspberry pi with latest Raspian bullseye and latest modem fimware. (SWI9X15C_05.05.58.00_00)
My sim card is from 1nce with a static ip.
With the card configured to QMI with
sudo qmicli -d /dev/cdc-wdm0 --dms-swi-set-usb-composition=6 it show raw-ip with:
qmicli --device=/dev/cdc-wdm0 --device-open-proxy --wda-get-data-format
i can connect to internet with QMI the following way:
sudo qmicli --device=/dev/cdc-wdm0 --device-open-proxy --wds-start-network="ip-type=4,apn=iot.1nce.net" --client-no-release-cid sudo udhcpc -q -f -n -i wwan0
Then i can ping google and reach the pi from outside my network with my provider’s vpn and the sim’s static ip. Only i have to “set-expected-data-format” to raw-ip after each reboot as it is not persistent with the following;
sudo ip link set dev wwan0 down sudo qmicli -p -d /dev/cdc-wdm0 --set-expected-data-format=raw-ip sudo ip link set dev wwan0 up
Now if i try to connect with network manager and modem manager i can ping google but can’t reach the pi from outside.
I also tried MBIM but i red this somewere:
In QMI mode, the LTE interface is directly connected to your system, the 10.... IP you got is the one assigned by your carrier (I am not sure where the initial 169.254.231.106 IP it had before you established the connection came from) and your machine is directly reachable from the Internet. In ECM mode, you are given a fake Ethernet interface that's connected to a router and NAT gateway ran by the LTE module itself; this is also where that web interface comes from. In this mode, the module's router part is the one exposed to the internet and acts as a router/firewall/NAT gateway - your computer is not directly reachable unless you use that web interface to forward a port. Given the usual "quality" of these (as you witnessed by looking at the UI) I would not be surprised if there are exploits or bugs in there.
I also tried the Qectel script from Sixfab wich work just fine for my EC-25’s but again , can’t connect from outside with the EM7355
Anybody can help about this?