DGA4132 problema connessione 4g seriale

  • 30 Risposte
  • 8276 Visite

0 Utenti e 1 Visitatore stanno visualizzando questo topic.

Offline kisspachyousee

  • Membro Anziano
  • ***
  • 217
DGA4132 problema connessione 4g seriale
« il: 28 Ottobre 2020, 18:26 »
Salve a tutti!
ho un problema con la chiavetta 4g MF823.
la riconosce ma non riesce a collegarsi alla rete.
Se imposto la chiavetta in modalità ethernet invece funziona, ma mi crea un doppio nat e non riesco in questo modo accedere da remoto.
allego il log

Codice: [Seleziona]
Wed Oct 28 17:42:27 2020 daemon.debug mobiled-netifd[3067]: Running teardown action on interface wwan
Wed Oct 28 17:42:27 2020 daemon.debug mobiled-netifd[3067]: Action teardown completed with return code 0 on interface wwan after 190.42ms
Wed Oct 28 17:42:35 2020 kern.info kernel: [  331.732806] usb 3-1: new high-speed USB device number 3 using ehci-platform
Wed Oct 28 17:42:36 2020 kern.info kernel: [  331.892638] option 3-1:1.0: GSM modem (1-port) converter detected
Wed Oct 28 17:42:36 2020 kern.info kernel: [  331.892890] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
Wed Oct 28 17:42:36 2020 kern.info kernel: [  331.893277] option 3-1:1.1: GSM modem (1-port) converter detected
Wed Oct 28 17:42:36 2020 kern.info kernel: [  331.893441] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
Wed Oct 28 17:42:36 2020 kern.info kernel: [  331.893863] option 3-1:1.2: GSM modem (1-port) converter detected
Wed Oct 28 17:42:36 2020 kern.info kernel: [  331.894021] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
Wed Oct 28 17:42:36 2020 user.notice usb: ACITVE_PORT=1. 10802
Wed Oct 28 17:42:36 2020 user.notice usb: EMI detected on port (EMI_ON_PORT= PORT=1 DEVPATH=/devices/platform/ehci-platform.0/usb3/3-1). 10802
Wed Oct 28 17:42:36 2020 user.notice usb: UCI companion state (1==). 10802
Wed Oct 28 17:42:38 2020 daemon.notice mobiled: Opening /dev/ttyUSB1
Wed Oct 28 17:42:39 2020 daemon.debug mobiled: [atchannel] /dev/ttyUSB1: >>  >> AT len 2
Wed Oct 28 17:42:39 2020 daemon.debug mobiled: [atchannel] /dev/ttyUSB1: <<  >>   len 9
Wed Oct 28 17:42:40 2020 daemon.notice mobiled: Probing /dev/ttyUSB1
Wed Oct 28 17:42:42 2020 daemon.notice mobiled: Network registration state changed to: registered
Wed Oct 28 17:42:52 2020 daemon.warn mobiled: Failed to retrieve ICCID
Wed Oct 28 17:42:54 2020 daemon.notice mobiled: Network registration state changed to: not_registered_searching
Wed Oct 28 17:42:54 2020 daemon.debug mobiled-netifd[3067]: Queuing disconnected action on interface wwan
Wed Oct 28 17:42:54 2020 daemon.debug mobiled-netifd[3067]: Running disconnected action on interface wwan
Wed Oct 28 17:42:54 2020 daemon.debug mobiled-netifd[3067]: Action disconnected completed with return code 0 on interface wwan after 173.04ms
Wed Oct 28 17:42:56 2020 daemon.notice mobiled: Network registration state changed to: registered
Wed Oct 28 17:42:56 2020 daemon.notice mobiled: Starting data session 0
Wed Oct 28 17:42:56 2020 daemon.debug mobiled-netifd[3067]: Queuing setup action on interface wwan
Wed Oct 28 17:42:56 2020 daemon.debug mobiled-netifd[3067]: Running setup action on interface wwan
Wed Oct 28 17:42:57 2020 daemon.notice netifd: Interface 'wwan_ppp' is setting up now
Wed Oct 28 17:42:57 2020 daemon.debug mobiled-netifd[3067]: Action setup completed with return code 0 on interface wwan after 239.56ms
Wed Oct 28 17:42:57 2020 daemon.info pppd[11111]: Plugin connstate.so loaded.
Wed Oct 28 17:42:57 2020 daemon.notice pppd[11111]: pppd 2.4.7 started by root, uid 0
Wed Oct 28 17:42:57 2020 daemon.notice pppd[11111]: Connection state changed to connecting (phase 2)
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: abort on (BUSY)
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: abort on (NO CARRIER)
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: abort on (ERROR)
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: report (CONNECT)
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: timeout set to 10 seconds
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: send (ATE1^M)
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: expect (OK)
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: ^M
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: OK
Wed Oct 28 17:42:58 2020 local2.info chat[11114]:  -- got it
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: send (AT+CGDCONT=1,"IP","web.ho-mobile.it"^M)
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: timeout set to 30 seconds
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: expect (OK)
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: ^M
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: AT+CGDCONT=1,"IP","web.ho-mobile.it"^M^M
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: OK
Wed Oct 28 17:42:58 2020 local2.info chat[11114]:  -- got it
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: send (ATE0^M)
Wed Oct 28 17:42:58 2020 local2.info chat[11114]: send (ATD*99***1#^M)
Wed Oct 28 17:42:58 2020 daemon.debug pppd[11111]: Script USE_APN='web.ho-mobile.it' DIAL_STRING='*99***1#' USE_SESSION=1 USE_PDPTYPE=IP /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/mobiled.chat finished (pid 11113), status = 0x0
Wed Oct 28 17:42:58 2020 daemon.info pppd[11111]: Serial connection established.
Wed Oct 28 17:42:58 2020 daemon.debug pppd[11111]: using channel 14
Wed Oct 28 17:42:59 2020 kern.info kernel: [  354.788086] wwan_ppp: renamed from ppp0
Wed Oct 28 17:42:59 2020 daemon.info pppd[11111]: Using interface wwan_ppp
Wed Oct 28 17:42:59 2020 daemon.notice pppd[11111]: Connect: wwan_ppp <--> /dev/ttyUSB2
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xab8710af>]
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x246c1dd6> <pcomp> <accomp>]
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: No auth is possible
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: sent [LCP ConfRej id=0x0 <auth chap MD5> <pcomp> <accomp>]
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xab8710af>]
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x246c1dd6>]
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x246c1dd6>]
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: sent [LCP EchoReq id=0x0 magic=0xab8710af]
Wed Oct 28 17:43:00 2020 daemon.notice pppd[11111]: Connection state changed to authenticating (phase 5)
Wed Oct 28 17:43:00 2020 daemon.notice pppd[11111]: Connection state changed to networking (phase 7)
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: rcvd [LCP DiscReq id=0x2 magic=0x246c1dd6]
Wed Oct 28 17:43:00 2020 daemon.debug pppd[11111]: rcvd [LCP EchoRep id=0x0 magic=0x246c1dd6 ab 87 10 af]
Wed Oct 28 17:43:01 2020 daemon.debug pppd[11111]: 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>]
Wed Oct 28 17:43:01 2020 daemon.debug pppd[11111]: sent [IPCP ConfReq id=0x2 <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>]
Wed Oct 28 17:43:02 2020 daemon.debug pppd[11111]: 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>]
Wed Oct 28 17:43:02 2020 daemon.debug pppd[11111]: sent [IPCP ConfReq id=0x3 <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>]
Wed Oct 28 17:43:03 2020 daemon.debug pppd[11111]: rcvd [IPCP ConfNak id=0x3 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Wed Oct 28 17:43:03 2020 daemon.debug pppd[11111]: sent [IPCP ConfReq id=0x4 <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>]
Wed Oct 28 17:43:04 2020 daemon.debug pppd[11111]: rcvd [IPCP ConfNak id=0x4 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Wed Oct 28 17:43:04 2020 daemon.debug pppd[11111]: sent [IPCP ConfReq id=0x5 <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>]
Wed Oct 28 17:43:05 2020 daemon.debug pppd[11111]: rcvd [IPCP ConfNak id=0x5 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Wed Oct 28 17:43:05 2020 daemon.debug pppd[11111]: sent [IPCP ConfReq id=0x6 <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>]
Wed Oct 28 17:43:06 2020 daemon.debug pppd[11111]: rcvd [IPCP ConfNak id=0x6 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Wed Oct 28 17:43:06 2020 daemon.debug pppd[11111]: sent [IPCP ConfReq id=0x7 <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>]
Wed Oct 28 17:43:07 2020 daemon.debug pppd[11111]: rcvd [IPCP ConfNak id=0x7 <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]
Wed Oct 28 17:43:07 2020 daemon.debug pppd[11111]: sent [IPCP ConfReq id=0x8 <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>]
Wed Oct 28 17:43:07 2020 daemon.notice mobiled: Starting data session 0
Wed Oct 28 17:43:07 2020 daemon.debug mobiled-netifd[3067]: Queuing setup action on interface wwan
Wed Oct 28 17:43:07 2020 daemon.debug mobiled-netifd[3067]: Running setup action on interface wwan
Wed Oct 28 17:43:07 2020 daemon.info pppd[11111]: Terminating on signal 15
Wed Oct 28 17:43:07 2020 daemon.notice pppd[11111]: Connection state changed to disconnecting (phase 9)
Wed Oct 28 17:43:07 2020 daemon.debug pppd[11111]: sent [LCP TermReq id=0x2 "User request"]
Wed Oct 28 17:43:07 2020 daemon.debug pppd[11111]: rcvd [LCP TermAck id=0x2]
Wed Oct 28 17:43:07 2020 daemon.notice pppd[11111]: Connection terminated.
Wed Oct 28 17:43:07 2020 daemon.debug mobiled-netifd[3067]: Action setup completed with return code 0 on interface wwan after 443.53ms
Wed Oct 28 17:43:08 2020 daemon.notice pppd[11111]: Connection state changed to disconnected (phase 0)
Wed Oct 28 17:43:08 2020 daemon.info pppd[11111]: Exit.
Wed Oct 28 17:43:08 2020 daemon.notice netifd: Interface 'wwan_ppp' is now down
root@modemtim:~#

Offline larsen64it

  • VIP
  • *****
  • 2696
Re:DGA4132 problema connessione 4g seriale
« Risposta #1 il: 29 Ottobre 2020, 08:01 »
Partendo da questo
https://blog.elevendroids.com/2014/06/changing-zte-mf823-4g-modem-ip-address/
si arriva a questo
http://my-router.blogspot.com/2015/09/zte-mf823-4g-change-ip-of-modem-and-get.html
in cui hanno modificato il menu dello zte per avere un accesso pubblico al router in modalità eth e non seriale.

Offline kisspachyousee

  • Membro Anziano
  • ***
  • 217
Re:DGA4132 problema connessione 4g seriale
« Risposta #2 il: 29 Ottobre 2020, 09:50 »
Sì, ho esattamente fatto così, anzi ho pure cambiato l'interfaccia grafica, messa l'originale zte e tradotta in italiano. Ma non è da questo il punto, in modalità eth, mi viene rilevata come indirizzo IP la sottorete del modem 4g, cioè 192.168.0.1. Io vorrei riuscire ad accedere con il ddns, quindi con l'ip pubblico che mi viene assegnato ad ogni connessione. Per questo ho cambiato la modalità da eth a seriale.

Offline larsen64it

  • VIP
  • *****
  • 2696
Re:DGA4132 problema connessione 4g seriale
« Risposta #3 il: 29 Ottobre 2020, 10:30 »
Credevo che il problema era il doppio nat che nel secondo link hanno risolto attivano il dmz.

Offline kisspachyousee

  • Membro Anziano
  • ***
  • 217
Re:DGA4132 problema connessione 4g seriale
« Risposta #4 il: 29 Ottobre 2020, 10:58 »
questo è quello che viene rilevato dal modem tim


questo è quello che ho impostato nella chiavetta


questo è quello che succede con il ddns, ho provato sia noip che dyndns, e ho provato anche tutte le interfacce che sono presenti nel modem.
Codice: [Seleziona]
Thu Oct 29 10:43:02 2020 user.err ddns-scripts[12150]: ddns_2596B09C9825D6B037879D87B2C908C3: No or private or invalid IP '192.168.0.182' given! Please check your configuration
Thu Oct 29 10:43:02 2020 user.err ddns-scripts[12150]: ddns_2596B09C9825D6B037879D87B2C908C3: No update send to DDNS Provider

P.S. il voip con cloudorchestra mi funziona!

Offline larsen64it

  • VIP
  • *****
  • 2696
Re:DGA4132 problema connessione 4g seriale
« Risposta #5 il: 29 Ottobre 2020, 12:12 »
Forse risolvi modificando la configurazione aggiungendo ip_url o ip_script per dare in pasto il tuo ip.
Codice: [Seleziona]
wget -qO- http://ipecho.net/plain | xargs echo
option ip_url "https://ipv4.wtfismyip.com/text"
« Ultima modifica: 29 Ottobre 2020, 12:37 da larsen64it »

Offline kisspachyousee

  • Membro Anziano
  • ***
  • 217
Re:DGA4132 problema connessione 4g seriale
« Risposta #6 il: 29 Ottobre 2020, 12:52 »
Codice: [Seleziona]
Thu Oct 29 12:48:42 2020 user.err ddns-scripts[18733]: ddns_C471372630EDD15ECC9F577F7FCC798E: Can not detect local IP using network_get_ipaddr 'https://ipv4.wtfismyip.com/text' - Error: '1' - TERMINATE

Offline larsen64it

  • VIP
  • *****
  • 2696
Re:DGA4132 problema connessione 4g seriale
« Risposta #7 il: 29 Ottobre 2020, 13:53 »
Il mio era solo un esempio. Le configurazioni accettate variano da servizio a servizio e bisogna sbatterci un po' la testa per avere una configurazione funzionante:
https://openwrt.org/docs/guide-user/base-system/ddns
https://github.com/openwrt/packages/blob/master/net/ddns-scripts/samples/ddns.config_sample
« Ultima modifica: 29 Ottobre 2020, 13:57 da larsen64it »

Offline kisspachyousee

  • Membro Anziano
  • ***
  • 217
Re:DGA4132 problema connessione 4g seriale
« Risposta #8 il: 29 Ottobre 2020, 13:59 »
Infatti mi chiedo, nella card "accesso ad internet", viene rilevato l'indirizzo ip wan, ma non capisco da dove lo prende.
tutte le interfacce che ho provato non riescono a rilevarlo.
Anche se abilito l'assistenza remota, viene rilevato come indirizzo ip, l'indirizzo DMZ della chiavetta!


Offline larsen64it

  • VIP
  • *****
  • 2696
Re:DGA4132 problema connessione 4g seriale
« Risposta #9 il: 29 Ottobre 2020, 14:11 »
Vedi con ipconfig come sei messo.
Magari ti serve commentare
   option ip_source  "network"
   option ip_network "wan"
e mettere
   option ip_source "web"
   option ip_url    "http://checkip.dyndns.com" se hai dyndns

Offline kisspachyousee

  • Membro Anziano
  • ***
  • 217
Re:DGA4132 problema connessione 4g seriale
« Risposta #10 il: 29 Ottobre 2020, 17:55 »
Perfetto!! ora acquisisce l'indirizzo ip correttamente!
ora devo capire perchè non riesco a pingarlo, infatti non riesco ad entrare sia se inserisco l'indirizzo ddns, sia se inserisco direttamente l'ip wan.

Offline fabiobassa

  • Esperto
  • ****
  • 728
  • Sesso: Maschio
Re:DGA4132 problema connessione 4g seriale
« Risposta #11 il: 30 Ottobre 2020, 00:03 »
Sei sicuro che sia un ip pubblico , ruotato e raggiungibile dall' esterno?
Se ne è già parlato in altro post e, che io sappia, quasi tutti i gestori mobili NON assegnano ip pubblici sulle sim

Offline kisspachyousee

  • Membro Anziano
  • ***
  • 217
Re:DGA4132 problema connessione 4g seriale
« Risposta #12 il: 30 Ottobre 2020, 00:17 »
Hai ragione, ho detto una gran stupidaggine! Non posso avere un IP pubblico...
So che c'è il modo per impostare una vpn e ddns per accedere da remoto, ma non sono ancora molto pratico nelle configurazioni.
Ho messo strongswan e ora il ddns.
Ora mi dovrò mettere a cercare come fare il resto.

Offline FrancYescO

  • VIP
  • *****
  • 3382
Re:DGA4132 problema connessione 4g seriale
« Risposta #13 il: 30 Ottobre 2020, 11:43 »
il ddns nel tuo caso non ti aiuta, di sicuro sulle sim ho mobile non puoi avere un IP pubblico (e probabilmente su quelli nattati hanno anche bloccato il ping..), una VPN con server esterno che ti fa il routing, forse, dipende dal tuo obbiettivo finale potrebbero esserci soluzioni più semplici

comunque una cosa non capisco, perchè ti riporta anche la connessione DHCP routed connessa? il modem è collegato tramite porta WAN ad altro?
« Ultima modifica: 30 Ottobre 2020, 11:44 da FrancYescO »

Offline kisspachyousee

  • Membro Anziano
  • ***
  • 217
Re:DGA4132 problema connessione 4g seriale
« Risposta #14 il: 30 Ottobre 2020, 11:59 »
La connessione DHCP routed connessa è una modifica che ho fatto io, mi da meno problemi con il VoIP e la chiavetta 4g e vede la connessione come se fosse una Wan. In questo modo è possibile anche vedere le nella pagina statistiche il grafico della connessione. Oltre alla chiavetta non ho altro collegato.
Anzi al modem ho collegato un hard disk e mi piacerebbe accedervi da remoto! Per questo ho pensato a ddns e con.