1
General Discussion / LTE Modem gateway not working
« on: July 09, 2024, 10:34:44 pm »
Hi,
I'm trying to setup a backup connection using LTE modem (Huawei ME906). After many problems I make it finally to work - sortof.
I tried both ppp (and dial) directly as well as opnsense gui and modem is connecting and getting ip (internal one)
After adding static route to 8.8.8.8 I verified using traceroute that connection is working.
But when I make gateway associated with ppp0 active (or add default route manually) then 2 things happens:
- connection to internet stops working (route to ppp0 is not working)
- connection to modem gets terminated after 4 LCP echo reqests fails
New routing table:
PPP log:
I also tried to use this modem on clean freebsd 13.2 and I was able to set default route and it was working.
Any clue what may be wrong in my setup?
I'm trying to setup a backup connection using LTE modem (Huawei ME906). After many problems I make it finally to work - sortof.
I tried both ppp (and dial) directly as well as opnsense gui and modem is connecting and getting ip (internal one)
Code: [Select]
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="93"] [opt4_link0] CHAT: +CGDCONT=1,"IP","internet"
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="94"] [opt4_link0] CHAT: Detected Huawei Modem.
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="95"] [opt4_link0] CHAT: Dialing server at *99#...
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="96"] [opt4_link0] CHAT: ATDT*99#
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="97"] [opt4_link0] CHAT: Connected at 150000000.
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="98"] [opt4_link0] MODEM: chat script succeeded
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="99"] [opt4_link0] Link: UP event
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="100"] [opt4_link0] LCP: Up event
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="101"] [opt4_link0] LCP: state change Starting --> Req-Sent
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="102"] [opt4_link0] LCP: SendConfigReq #1
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="103"] [opt4_link0] ACCMAP 0x000a0000
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="104"] [opt4_link0] MRU 1500
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="105"] [opt4_link0] MAGICNUM 0x33ced23c
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="106"] [opt4_link0] LCP: rec'd Configure Request #1 (Req-Sent)
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="107"] [opt4_link0] ACFCOMP
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="108"] [opt4_link0] PROTOCOMP
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="109"] [opt4_link0] ACCMAP 0x00000000
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="110"] [opt4_link0] MRU 1500
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="111"] [opt4_link0] MAGICNUM 0x00000547
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="112"] [opt4_link0] AUTHPROTO CHAP MD5
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="113"] [opt4_link0] LCP: SendConfigRej #1
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="114"] [opt4_link0] ACFCOMP
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="115"] [opt4_link0] PROTOCOMP
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="116"] [opt4_link0] LCP: rec'd Configure Ack #1 (Req-Sent)
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="117"] [opt4_link0] ACCMAP 0x000a0000
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="118"] [opt4_link0] MRU 1500
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="119"] [opt4_link0] MAGICNUM 0x33ced23c
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="120"] [opt4_link0] LCP: state change Req-Sent --> Ack-Rcvd
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="121"] [opt4_link0] LCP: rec'd Configure Request #2 (Ack-Rcvd)
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="122"] [opt4_link0] ACCMAP 0x00000000
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="123"] [opt4_link0] MRU 1500
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="124"] [opt4_link0] MAGICNUM 0x00000547
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="125"] [opt4_link0] AUTHPROTO CHAP MD5
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="126"] [opt4_link0] LCP: SendConfigAck #2
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="127"] [opt4_link0] ACCMAP 0x00000000
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="128"] [opt4_link0] MRU 1500
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="129"] [opt4_link0] MAGICNUM 0x00000547
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="130"] [opt4_link0] AUTHPROTO CHAP MD5
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="131"] [opt4_link0] LCP: state change Ack-Rcvd --> Opened
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="132"] [opt4_link0] LCP: auth: peer wants CHAP, I want nothing
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="133"] [opt4_link0] LCP: LayerUp
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="134"] [opt4_link0] CHAP: rec'd CHALLENGE #1 len: 37
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="135"] [opt4_link0] Name: "HUAWEI_CHAP_SRVR"
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="136"] [opt4_link0] CHAP: Using authname "internet"
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="137"] [opt4_link0] CHAP: sending RESPONSE #1 len: 29
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="138"] [opt4_link0] CHAP: rec'd SUCCESS #1 len: 13
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="139"] [opt4_link0] MESG: Welcome!!
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="140"] [opt4_link0] LCP: authorization successful
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="141"] [opt4_link0] Link: Matched action 'bundle "opt4" ""'
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="142"] [opt4_link0] Link: Join bundle "opt4"
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="143"] [opt4] Bundle: Status update: up 1 link, total bandwidth 150000000 bps
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="144"] [opt4] IPCP: Open event
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="145"] [opt4] IPCP: state change Initial --> Starting
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="146"] [opt4] IPCP: LayerStart
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="147"] [opt4] IPCP: Up event
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="148"] [opt4] IPCP: state change Starting --> Req-Sent
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="149"] [opt4] IPCP: SendConfigReq #1
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="150"] [opt4] IPADDR 0.0.0.0
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="151"] [opt4] IPCP: rec'd Configure Request #1 (Req-Sent)
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="152"] [opt4] IPCP: SendConfigAck #1
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="153"] [opt4] IPCP: state change Req-Sent --> Ack-Sent
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="154"] [opt4] IPCP: rec'd Configure Nak #1 (Ack-Sent)
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="155"] [opt4] IPCP: SendConfigReq #2
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="156"] [opt4] IPADDR 0.0.0.0
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="157"] [opt4] IPCP: rec'd Configure Nak #2 (Ack-Sent)
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="158"] [opt4] IPADDR 10.234.59.142
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="159"] [opt4] 10.234.59.142 is OK
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="160"] [opt4] IPCP: SendConfigReq #3
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="161"] [opt4] IPADDR 10.234.59.142
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="162"] [opt4] IPCP: rec'd Configure Ack #3 (Ack-Sent)
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="163"] [opt4] IPADDR 10.234.59.142
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="164"] [opt4] IPCP: state change Ack-Sent --> Opened
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="165"] [opt4] IPCP: LayerUp
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="166"] [opt4] 10.234.59.142 -> 10.64.64.0
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="167"] [opt4] IFACE: Up event
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="168"] [opt4] IFACE: Rename interface ng0 to ppp0
After adding static route to 8.8.8.8 I verified using traceroute that connection is working.
Code: [Select]
Internet:
Destination Gateway Flags Netif Expire
default 130.255.153.129 UGS igc0
1.1.1.1 130.255.153.129 UGHS igc0
8.8.8.8 link#11 UHS ppp0
10.64.64.0 link#11 UH ppp0
10.233.140.154 link#11 UHS lo0
127.0.0.1 link#4 UH lo0
130.255.153.128/26 link#1 U igc0
130.255.153.147 link#1 UHS lo0
192.168.1.0/24 link#2 U vtnet0
192.168.1.1 link#2 UHS lo0
192.168.10.0/24 link#7 U vlan0.10
192.168.10.1 link#7 UHS lo0
192.168.20.0/24 link#8 U vlan0.20
192.168.20.1 link#8 UHS lo0
192.168.100.0/24 192.168.100.2 UGS ovpns1
192.168.100.1 link#10 UHS lo0
192.168.100.2 link#10 UH ovpns1
But when I make gateway associated with ppp0 active (or add default route manually) then 2 things happens:
- connection to internet stops working (route to ppp0 is not working)
- connection to modem gets terminated after 4 LCP echo reqests fails
New routing table:
Code: [Select]
Internet:
Destination Gateway Flags Netif Expire
default 10.64.64.0 UGS ppp0
1.1.1.1 130.255.153.129 UGHS igc0
8.8.8.8 link#11 UHS ppp0
10.64.64.0 link#11 UH ppp0
10.233.140.154 link#11 UHS lo0
127.0.0.1 link#4 UH lo0
130.255.153.128/26 link#1 U igc0
130.255.153.147 link#1 UHS lo0
192.168.1.0/24 link#2 U vtnet0
192.168.1.1 link#2 UHS lo0
192.168.10.0/24 link#7 U vlan0.10
192.168.10.1 link#7 UHS lo0
192.168.20.0/24 link#8 U vlan0.20
192.168.20.1 link#8 UHS lo0
192.168.100.0/24 192.168.100.2 UGS ovpns1
192.168.100.1 link#10 UHS lo0
192.168.100.2 link#10 UH ovpns1
PPP log:
Code: [Select]
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="165"] [opt4] IPCP: LayerUp
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="166"] [opt4] 10.234.59.142 -> 10.64.64.0
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="167"] [opt4] IFACE: Up event
<30>1 2024-07-08T19:43:32+02:00 OPNsense.local ppp 66521 - [meta sequenceId="168"] [opt4] IFACE: Rename interface ng0 to ppp0
<30>1 2024-07-08T21:20:42+02:00 OPNsense.local ppp 66521 - [meta sequenceId="1"] [opt4_link0] LCP: no reply to 1 echo request(s)
<30>1 2024-07-08T21:20:52+02:00 OPNsense.local ppp 66521 - [meta sequenceId="2"] [opt4_link0] LCP: no reply to 2 echo request(s)
<30>1 2024-07-08T21:21:02+02:00 OPNsense.local ppp 66521 - [meta sequenceId="3"] [opt4_link0] LCP: no reply to 3 echo request(s)
<30>1 2024-07-08T21:21:12+02:00 OPNsense.local ppp 66521 - [meta sequenceId="4"] [opt4_link0] LCP: no reply to 4 echo request(s)
<30>1 2024-07-08T21:21:22+02:00 OPNsense.local ppp 66521 - [meta sequenceId="5"] [opt4_link0] LCP: no reply to 5 echo request(s)
<30>1 2024-07-08T21:21:22+02:00 OPNsense.local ppp 66521 - [meta sequenceId="6"] [opt4_link0] LCP: peer not responding to echo requests
<30>1 2024-07-08T21:21:22+02:00 OPNsense.local ppp 66521 - [meta sequenceId="7"] [opt4_link0] LCP: state change Opened --> Stopping
<30>1 2024-07-08T21:21:22+02:00 OPNsense.local ppp 66521 - [meta sequenceId="8"] [opt4_link0] Link: Leave bundle "opt4"
I also tried to use this modem on clean freebsd 13.2 and I was able to set default route and it was working.
Any clue what may be wrong in my setup?