#!/bin/sh# delete cd0 prepare USB E3372 modem# LLC script v0.1# test if USB dongle existusbdata=`usbconfig | grep HUAWEIMOBILE`if [ -z "$usbdata" ]then echo "INSERT USB E3372 !" exitficdata1=`/sbin/camcontrol devlist | grep cd0`# test if no exist cd0 -> NO cd0#echo "$cdata1"if [ -n "$cdata1" ]then# exec commands to eject cd0 and activate network modemecho "EJECT cd0"/sbin/camcontrol eject cd0/usr/local/sbin/usb_modeswitch --default-vendor 0x12d1 --default-product 0x1f01 -Jfi#echo "EXIT USB-E3372 CD"#exit 0ue0inet=`/sbin/ifconfig ue0 | grep inet`# test if exist ue0inetwhile [ -z "$ue0inet" ]do echo "working to ue0 IP..." /sbin/ifconfig ue0 up /bin/sleep 1 /sbin/ifconfig ue0 inet 192.168.10.10 netmask 255.255.255.0 ue0inet=`/sbin/ifconfig ue0 | grep inet`done#/sbin/ifconfig ue0echo "EXIT USB-E3372"exit
Hi,I made some experiments some time ago with this modem and because the problems you mention now I use a TL-MR3420 with this modem, and no more problems...
...nope, sadly it didn't help. opnsense still freezes when the usb modem is disconnected.
Because in my case TL-MR3420 with 4G/LTE is used only for WAN backup and I can't have open ports on 4G/LTE or a true Public IP with my operator I have no problems with dual NAT, Primary WAN - fiber optic is not used via TL-MR3420.