I'm setting up an access point using external LTE modem (Huawei E3372h-320) and externalk WiFi COMFAST CF-WU782AC
Both devices work independently:
LTE modem in cdc_ether mode connects to the internet and curl works from CLI just fine
WiFi scans the network and is discoverable/connectable when in AP mode
The problem is that no traffic flows in-between, nor AP has DHCP working despite LTE modem provides it (well, even with static IPs of WiFi clients it didn't work)
I'm puzzled why
cat /etc/config/network
........
config rule
option name 'Allow-HiLink'
option src 'lan'
option proto 'tcp'
option target 'ACCEPT'
option family 'ipv4'
option dest 'wan'
list dest_ip '192.168.8.8'
config interface 'lte'
option proto 'static'
option device 'eth1'
option type 'bridge'
list ipaddr '192.168.8.10/24'
option gateway '192.168.8.1'
list dns '192.168.8.1'
This doesn't belong in the network file -- delete it:
In your lte interface, there are two things:
The option type bridge line should not be in a network interface stanza. Remove that line.
And Do you have USB ethernet adapter? Have you installed the driver packages for it? Is it safe to assume that the LTE modem is connected by ethernet to that USB ethernet adapter?
As mentioned, it works from within the router's prompt, but there seem to be no routing between the modem/USB adapter and the rest of the network, despite routes being defined:
root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=117 time=29.897 ms
64 bytes from 8.8.8.8: seq=1 ttl=117 time=24.687 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 24.687/27.292/29.897 ms
root@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.8.1 0.0.0.0 UG 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
Additionally, when my laptop is plugged to Raspberry's eth0 interface via cable to run the shell, I can open WRT's admin panel in browser on eth1 interface's IP too 192.168.8.10, but at the same time I can't open LTE mode's admin page from laptop browser on 192.168.8.1 despite it being accessible from router's shell via curl
let's see the full configuration as it is right now:
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
If I may ask:
Why does it look like the Pi case is covered, inside, with aluminum foil?
Even before we get the cat calls, The LTE modem should either be on top of the ethernet (eth1) dongle or (and best) on a 3' USBA male to female extension cord for much better reception.
Since the Pi has already given USB addresses the cord would be best as it does not change the port.
External radio which is used as AP is radio1, while radio0 is internal Raspberry's WiFi card that was used initially to connect to home WiFi and download necessary kernel modules and other packages.
It will be disabled completely, but just to make things clear, no internet traffic flows through radio0 anyways because My_other_home_WiFi is turned off.
All the internet connectivity is happening via LTE
I get that it is the lte modem but does the modem need a password?
No, the password/APN was configured inside the modem itself via its web interface and it's stored there permanently. In HiLink mode the modem acts as a router and doesn't require extra configuration