Modem hangup with an mobilcom debitel connection using ppp

Hi,

i'm trying to setup an cellular connection with mobilcom debitel (vodafone cellular network) with ppp. Unfortunately i got an strange modem hangup, which i didn't understand. I'm using the following APN settings:

With this configuration, without User/Password, i got an error message like No auth is possible in the connection log, which has been followed by the modem hangup. So i configured the CHAP authentication, which fixed the No auth is possible problem, but still ends with an modem hangup.

My scripts are:

cat /etc/ppp/peers/modem0 

# state 'enabled'
nodetach
/dev/ttyModem0_data
115200
user 'vodafone'
#password 'vodafone'
connect '/usr/sbin/chat -v -s -f /etc/ppp/scripts/modem0-connect'
disconnect '/usr/sbin/chat -v -s -f /etc/ppp/scripts/modem0-disconnect'
hide-password
noauth
debug
defaultroute
replacedefaultroute
noipdefault
cat /etc/ppp/scripts/modem0-connect 

ABORT BUSY
ABORT DELAYED
ABORT "NO ANSWER"
ABORT "NO DIALTONE"
ABORT VOIC
ABORT ERRO
ABORT RINGING
TIMEOUT 30
'' ATZ
OK ATE0
OK AT+CGDCONT=1,"IP","web.vodafone.de",,0,0
OK ATD*99#
CONNECT ''
cat /etc/ppp/chap-secrets 

# Secrets for authentication using CHAP
# client	server	secret			IP addresses
vodafone	*	""		*

Connection log:

pon modem0
abort on (BUSY)
abort on (DELAYED)
abort on (NO ANSWER)
abort on (NO DIALTONE)
abort on (VOIC)
abort on (ERRO)
abort on (RINGING)
timeout set to 30 seconds
send (ATZ^M)
expect (OK)
^M
OK
 -- got it

send (ATE0^M)
expect (OK)
^M
ATE0^M^M
OK
 -- got it

send (AT+CGDCONT=1,"IP","web.vodafone.de",,0,0^M)
expect (OK)
^M
^M
OK
 -- got it

send (ATD*99#^M)
expect (CONNECT)
^M
^M
CONNECT
 -- got it

send (^M)
Script /usr/sbin/chat -v -s -f /etc/ppp/scripts/modem0-connect finished (pid 14437), status = 0x0
Serial connection established.
using channel 57
Using interface ppp0
Connect: ppp0 <--> /dev/ttyModem0_data
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x9a7026e8> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x47 <asyncmap 0x0> <auth chap MD5> <magic 0xfd93b746> <pcomp> <accomp>]
sent [LCP ConfAck id=0x47 <asyncmap 0x0> <auth chap MD5> <magic 0xfd93b746> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x9a7026e8> <pcomp> <accomp>]
rcvd [LCP DiscReq id=0x48 magic=0xfd93b746]
rcvd [CHAP Challenge id=0x1 <7443e728a3376fcbc08017df40d1d8f3>, name = "UMTS_CHAP_SRVR"]
sent [CHAP Response id=0x1 <397e50fde2664f429b7ee10112ebfefb>, name = "vodafone"]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
Modem hangup
Connection terminated.

I'm not sure, what is going wrong. Is the CHAP authentication working, or is the problem related to the next command and a missing reply?

In the past, i already used an LIDL-Connect, which is also using the vodafone cellular network. This has also print an No auth is possible message, but continued afterwards without any problem.

Script /usr/sbin/chat -v -s -f /etc/ppp/scripts/lidl-connect finished (pid 1124), status = 0x0
Serial connection established.
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3f8fe28a> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x9 <asyncmap 0x0> <auth chap MD5> <magic 0xd2b87f8d> <pcomp> <accomp>]
No auth is possible
sent [LCP ConfRej id=0x9 <auth chap MD5>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x3f8fe28a> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0xa <asyncmap 0x0> <magic 0xd2b87f8d> <pcomp> <accomp>]
sent [LCP ConfAck id=0xa <asyncmap 0x0> <magic 0xd2b87f8d> <pcomp> <accomp>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [LCP DiscReq id=0xb magic=0xd2b87f8d]
rcvd [IPCP ConfNak id=0x1 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfNak id=0x2 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
rcvd [IPCP ConfReq id=0x6]
sent [IPCP ConfNak id=0x6 <addr 0.0.0.0>]
rcvd [IPCP ConfRej id=0x3 <compress VJ 0f 01> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
sent [IPCP ConfReq id=0x4 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14>]
rcvd [IPCP ConfReq id=0x7]
sent [IPCP ConfAck id=0x7]
rcvd [IPCP ConfNak id=0x4 <addr 100.104.102.62> <ms-dns1 139.7.30.126> <ms-dns2 139.7.30.125>]
sent [IPCP ConfReq id=0x5 <addr 100.104.102.62> <ms-dns1 139.7.30.126> <ms-dns2 139.7.30.125>]
rcvd [IPCP ConfAck id=0x5 <addr 100.104.102.62> <ms-dns1 139.7.30.126> <ms-dns2 139.7.30.125>]
Could not determine remote IP address: defaulting to 10.64.64.64
not replacing default route to eth0 [192.168.2.1]
local  IP address 100.104.102.62
remote IP address 10.64.64.64
primary   DNS address 139.7.30.126
secondary DNS address 139.7.30.125
Script /etc/ppp/ip-up started (pid 1139)
Script /etc/ppp/ip-up finished (pid 1139), status = 0x0

Of course, i didn't have the card on side. Is this problem related to the CHAP authentication or is there a problem with the provider/sim card?

I am grateful for any idea!

Thanks in advance,

Marc

What makes you use PPP?

I want to use the stuff on other devices too. PPP is available on all platforms.

PPP is not the best choice in 2020. What is your modem brand/model?

Unfortunately i have to provide support for older configurations, so updating isn't as easy possible =/

I'm using a Quectel EC21 LTE modem.

That should work fine with QMI.