settings for WAN and Huawei LTE modem in bridge mode

Started by FredFresh, September 07, 2024, 08:17:43 AM

Previous topic - Next topic
Hi,

I want to use the huawei LTE modem in bridge and let the ponsense to manage everything.
I am missing the proper settings for the WAN port. The mobile connection uses the APN and username/password, how should I set the parameters of the wan interface?
Thank you

You need to add PPP interface, configure APN etc. there and assign that PPP interface to WAN.

https://docs.opnsense.org/manual/how-tos/cellular.html

September 07, 2024, 11:02:42 AM #2 Last Edit: September 07, 2024, 12:56:31 PM by FredFresh
Hi, thank you! I found that page, but stopped riding at the beginning because it seemed about the integrated mobile modem unit.

@doktornotor, I have the first issue: during the creation of the PPP connection, I have to input the link interface, but in my case the LTE modem is a standalone and connected by cable to the wan port.
It seems OPNSENSE doesn't offer the PPP on the list of connections inside the Interfaces menu.

September 07, 2024, 01:21:52 PM #3 Last Edit: September 07, 2024, 01:24:21 PM by doktornotor
Perhaps posting the exact model of your "LTE modem" would clarify what "bridge mode" means for that device. Sounds like a normal router with LTE WAN to me. Needs to take care of dialing whatever it's supposed to do itself. If you set your WAN to DHCP, you should get an IP and that's it.

The linked howto is of course not meant for this use case.

The modem is a huawei  B535-235a, with 5 lan port.
I am connected through cable to one of these ports.
The bridge mode is under the "router" menu...I think the modem functionality is still performed, but the OPNSENSE interface now see the public ip...correct? how should I proceed now?

Any other information you need, please let me know.

Quote from: FredFresh on September 07, 2024, 01:58:07 PM
OPNSENSE interface now see the public ip...correct? how should I proceed now?

Hmmm? It's working, nothing more to do there...

Sorry, my mistake....the opnsense SHOULD see the public ip right? (didn't tried yet)...now the wan has a static ip4 ip, should i put PPPoE?

My problem is that I have 3 vpn of the same provide implemented and working with a fall-back logic.
The problem is that periodically the vpn are disconnected by "something" and only after restarting the modem, I can restore them.
After several tests My thought is that the issue is in the double NAT performed by the opnsense+modem.


What I did:
Set wan interface to ip4 dhcp, no ip6 (this provider use ip4).
Ip4 conf type to dhcp, empty or blanck all the other options

Wan gateway is on wan interface, address family ip4, gateway minoring is disabled.

Removed the wan interface from the dhcp list.

The wan interface receive no ip.

I couldn't find any useful manual for mentioned device. If you mean this product then it does not have 5 but 4 LAN ports. And there's absolutely no mention of any bridge mode anywhere.

https://consumer.huawei.com/uk/support/wireless-routers/4g-router-3pro/

Perhaps post some screenshots of the GUI.

The manual refers to the first version of the firmware, the next one received the bridge option.
Huawei attention on this is zero.
Later I will post the screenshot.

Here the screenshot


In the meanwhile I also connected a laptop directly to the modem, and ipconfig return this

ip4 automatic configuration 169.254.168.52
subnet 255.255.0.0
gateway 192.168.8.1 (this is also the ip addresse of the modem after factory reset)

I have never seen the 169.254.168.52

Well that's APIPA. The bridge mode description from the screenshot is not really useful at all. Try DHCP and a different LAN port. No idea how's that designed to work.

http://consumer.huawei.com/en/community/

Thank you for your support, I will try to ask on huawei forum (hoping on other users because manufacturer's support is terrible).

Quote from: FredFresh on September 07, 2024, 02:01:54 PM
Sorry, my mistake....the opnsense SHOULD see the public ip right? (didn't tried yet)...now the wan has a static ip4 ip, should i put PPPoE?

Place the modem in fully bridged mode and configure the opnsense WAN interface with IPv4 PPPoE, adding your login credentials at the "PPPoE configuration" section of the WAN interface page.

Quote from: FredFresh on September 07, 2024, 02:01:54 PMMy problem is that I have 3 vpn of the same provide implemented and working with a fall-back logic.

You will need to replicate this VPN configuration at the opnsense router.  A bridged modem device would perform no routing.  A double NAT configuration could break many services, not just VPN.