Today I had the bright idea to try and configure the LTE modem on my new-ish work laptop (Thinkpad T16).
It has been ~10-15 years since i had tofight against deal with ppp back when DSL lines were common. I have nothing but the worst memories of those times, and ppp once again doesn't fail to deliver the same experience.
The modem is a Quectel EM05-G, which works with the u3g driver.
Thanks to the fact that ppp and AT commands are almost as ancient as sticks that burn on one side, documentation about both (ppp and AT, not the sticks) are just as ancient. The ppp(8) manpage doesn't even mention any mobile connections, but I found some article from 11 years ago that gave me a working sequence of AT commands to establish a connection: (the default u3g config won't work)
My resulting ppp.conf (relevant parts) looks as follows:
The provider (sipgate) only 'requires' the APN name and username to be set (='sipgate'). If required by the device/software, a dial-in number of *99# should be used.
Trying to connect produces the following log: (as quote so the block will be collapsed)
From what I'm guessing from that, everything seems to be OK up until this point:
So I tried adding
As there is also an error about MPPE (which I don't need?), I also added
I'm on thte brink of throwing that modem out, use some plastic lte router and refuse to touch ppp ever again, so any help with this will be highly appreciated.
It has been ~10-15 years since i had to
The modem is a Quectel EM05-G, which works with the u3g driver.
Thanks to the fact that ppp and AT commands are almost as ancient as sticks that burn on one side, documentation about both (ppp and AT, not the sticks) are just as ancient. The ppp(8) manpage doesn't even mention any mobile connections, but I found some article from 11 years ago that gave me a working sequence of AT commands to establish a connection: (the default u3g config won't work)
FreeBSD and Mobile Broadband
Since there is not much information on how to get mobile broadband up and running on FreeBSD, I decided to share the knowledge. This article will focus on miniPCIe 3G and 4G wireless modules but sh…
technotation.com
My resulting ppp.conf (relevant parts) looks as follows:
Code:
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION
# Ensure that "device" references the correct serial port
# for your modem. (cuau0 = COM1, cuau1 = COM2)
#
set device /dev/cuau0
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
# enable dns # request DNS info (for resolv.conf)
sipgate:
set device /dev/cuaU0
set timeout 0
set authname sipgate
set dial "ABORT BUSY TIMEOUT 3 \
\"\" \
AT OK-AT-OK \
AT+CMEE=2 OK-AT-OK \
AT+CSQ OK \
AT+CGDCONT=1,\\\"IP\\\",\\\"sipgate\\\" OK \
ATD*99# CONNECT"
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
The provider (sipgate) only 'requires' the APN name and username to be set (='sipgate'). If required by the device/software, a dial-in number of *99# should be used.
Trying to connect produces the following log: (as quote so the block will be collapsed)
Code:
Jul 6 10:17:07 hal9000 ppp[30942]: Phase: Using interface: tun0
Jul 6 10:17:07 hal9000 ppp[30942]: Phase: deflink: Created in closed state
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: default: ident user-ppp VERSION
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: default: set device /dev/cuau0
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: default: set speed 115200
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: default: set timeout 180
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: set device /dev/cuaU0
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: set timeout 0
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: set authname sipgate
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: disable deflate pred1
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: set dial ABORT BUSY TIMEOUT 3 "" AT OK-AT-OK AT+CMEE=2 OK-AT-OK AT+CSQ OK AT+CGDCONT=1,\"IP\",\"sipgate\" OK ATD*99# CONNECT
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: add default HISADDR
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: PPP Started (foreground mode).
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: bundle: Establish
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: deflink: closed -> opening
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: deflink: Connected!
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: deflink: opening -> dial
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: deflink: Dial attempt 1 of 1
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Send: AT^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Expect(3): OK
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: AT^M^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: OK^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Send: AT+CMEE=2^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Expect(3): OK
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: AT+CMEE=2^M^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: OK^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Send: AT+CSQ^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Expect(3): OK
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: AT+CSQ^M^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: +CSQ: 99,99^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: ^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: OK^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Send: AT+CGDCONT=1,"IP","sipgate"^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Expect(3): OK
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: AT+CGDCONT=1,"IP","sipgate"^M^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: OK^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Send: ATD*99#^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Expect(3): CONNECT
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: ATD*99#^M^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: CONNECT 150000000^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: deflink: dial -> carrier
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: Phase: deflink: /dev/cuaU0: CD detected
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: Phase: deflink: carrier -> login
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: Phase: deflink: login -> lcp
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: LCP: FSM: Using "deflink" as a transport
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: LCP: deflink: State change Initial --> Closed
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: LCP: deflink: State change Closed --> Stopped
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: LayerStart
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACFCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: PROTOCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACCMAP[6] 0x00000000
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MRU[4] 1500
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MAGICNUM[6] 0xb3f3b8bb
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: State change Stopped --> Req-Sent
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: RecvConfigReq(36) state = Req-Sent
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACCMAP[6] 0x00000000
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MAGICNUM[6] 0xd1680cf3
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: PROTOCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACFCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: SendConfigAck(36) state = Req-Sent
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACCMAP[6] 0x00000000
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MAGICNUM[6] 0xd1680cf3
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: PROTOCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACFCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: State change Req-Sent --> Ack-Sent
Jul 6 10:17:07 hal9000 ppp[30942]: Phase: Using interface: tun0
Jul 6 10:17:07 hal9000 ppp[30942]: Phase: deflink: Created in closed state
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: default: ident user-ppp VERSION
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: default: set device /dev/cuau0
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: default: set speed 115200
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK ATE1Q0 OK \dATDT\T TIMEOUT 40 CONNECT
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: default: set timeout 180
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: set device /dev/cuaU0
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: set timeout 0
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: set authname sipgate
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: disable deflate pred1
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: set dial ABORT BUSY TIMEOUT 3 "" AT OK-AT-OK AT+CMEE=2 OK-AT-OK AT+CSQ OK AT+CGDCONT=1,\"IP\",\"sipgate\" OK ATD*99# CONNECT
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Command: sipgate: add default HISADDR
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: PPP Started (foreground mode).
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: bundle: Establish
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: deflink: closed -> opening
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: deflink: Connected!
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: deflink: opening -> dial
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: deflink: Dial attempt 1 of 1
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Send: AT^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Expect(3): OK
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: AT^M^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: OK^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Send: AT+CMEE=2^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Expect(3): OK
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: AT+CMEE=2^M^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: OK^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Send: AT+CSQ^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Expect(3): OK
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: AT+CSQ^M^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: +CSQ: 99,99^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: ^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: OK^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Send: AT+CGDCONT=1,"IP","sipgate"^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Expect(3): OK
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: AT+CGDCONT=1,"IP","sipgate"^M^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: OK^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Send: ATD*99#^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Expect(3): CONNECT
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: ATD*99#^M^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Chat: Received: CONNECT 150000000^M
Jul 6 10:17:07 hal9000 ppp[30942]: tun0: Phase: deflink: dial -> carrier
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: Phase: deflink: /dev/cuaU0: CD detected
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: Phase: deflink: carrier -> login
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: Phase: deflink: login -> lcp
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: LCP: FSM: Using "deflink" as a transport
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: LCP: deflink: State change Initial --> Closed
Jul 6 10:17:08 hal9000 ppp[30942]: tun0: LCP: deflink: State change Closed --> Stopped
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: LayerStart
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACFCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: PROTOCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACCMAP[6] 0x00000000
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MRU[4] 1500
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MAGICNUM[6] 0xb3f3b8bb
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: State change Stopped --> Req-Sent
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: RecvConfigReq(36) state = Req-Sent
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACCMAP[6] 0x00000000
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MAGICNUM[6] 0xd1680cf3
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: PROTOCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACFCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: SendConfigAck(36) state = Req-Sent
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACCMAP[6] 0x00000000
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05)
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MAGICNUM[6] 0xd1680cf3
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: PROTOCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACFCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: State change Req-Sent --> Ack-Sent
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: RecvConfigAck(1) state = Ack-Sent
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACFCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: PROTOCOMP[2]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: ACCMAP[6] 0x00000000
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MRU[4] 1500
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MAGICNUM[6] 0xb3f3b8bb
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: State change Ack-Sent --> Opened
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: LayerUp
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: SendIdent(0) state = Opened
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: MAGICNUM b3f3b8bb
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: TEXT user-ppp 3.4.2
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: Phase: bundle: Authenticate
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: Phase: deflink: his = CHAP 0x05, mine = none
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: RecvDiscardReq(37) state = Opened
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: Phase: Chap Input: CHALLENGE (16 bytes from UMTS_CHAP_SRVR)
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: Phase: Chap Output: RESPONSE (sipgate)
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: Phase: Chap Input: SUCCESS
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: IPCP: Using trigger address 0.0.0.0
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: CCP: FSM: Using "deflink" as a transport
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: CCP: deflink: State change Initial --> Closed
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: CCP: deflink: LayerStart.
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: CCP: MPPE: Not usable without CHAP81
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: CCP: deflink: SendConfigReq(1) state = Closed
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: CCP: [EMPTY]
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: CCP: deflink: State change Closed --> Req-Sent
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: Phase: deflink: lcp -> open
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: Phase: bundle: Network
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: IPCP: FSM: Using "deflink" as a transport
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: IPCP: deflink: State change Initial --> Closed
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: IPCP: deflink: LayerStart.
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: IPCP: IPADDR[6] 0.0.0.0
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: IPCP: deflink: State change Closed --> Req-Sent
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: RecvProtocolRej(38) state = Opened
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected!
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: CCP: deflink: State change Req-Sent --> Stopped
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: deflink: Carrier lost
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: CCP: deflink: State change Stopped --> Closed
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: CCP: deflink: State change Closed --> Initial
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: LCP: deflink: LayerDown
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: LCP: deflink: State change Opened --> Starting
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: deflink: open -> lcp
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Warning: ff02::/: Change route failed: errno: Network is unreachable
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: IPCP: deflink: State change Req-Sent --> Starting
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: IPCP: deflink: LayerFinish.
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: IPCP: Connect time: 1 secs: 0 octets in, 0 octets out
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: IPCP: 0 packets in, 0 packets out
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: IPCP: total 0 bytes/sec, peak 0 bytes/sec on Thu Jul 6 10:17:09 2023
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: IPCP: deflink: State change Starting --> Initial
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: bundle: Terminate
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: LCP: deflink: LayerFinish
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: LCP: deflink: State change Starting --> Initial
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: deflink: Disconnected!
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: deflink: lcp -> logout
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: deflink: Disconnected!
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: deflink: logout -> hangup
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: deflink: Connect time: 3 secs: 218 octets in, 228 octets out
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: deflink: 5 packets in, 7 packets out
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: total 148 bytes/sec, peak 111 bytes/sec on Thu Jul 6 10:17:10 2023
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: deflink: hangup -> closed
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: bundle: Dead
Jul 6 10:17:10 hal9000 ppp[30942]: tun0: Phase: PPP Terminated (normal).
From what I'm guessing from that, everything seems to be OK up until this point:
Code:
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: RecvProtocolRej(38) state = Opened
Jul 6 10:17:09 hal9000 ppp[30942]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected!
So I tried adding
disable vj deflate pred1
as those are the compression protocols that may be involved according to ppp(8), when disabling all three, there is no more 'Protocol was rejected' message, but the connection also isn't established. Leaving any of those 3 protocols enabled always leads to the 'CCP was rejected' message.As there is also an error about MPPE (which I don't need?), I also added
disable mppe
, which muffles the messages about MPPE, but connection still fails with "Compression Control Protocol was rejected" (if one or more of the protocols are enabled).I'm on thte brink of throwing that modem out, use some plastic lte router and refuse to touch ppp ever again, so any help with this will be highly appreciated.