ATTENZIONE se pensi di passare ad Openwrt ricordo che non potrai sfruttare la rj11 telefono/volte
AncheNO Ho provato ad iscrivermi sul forum di openwrt ma prima di poterti mandare dei PM
ti ho mandato un messaggio privato basta che rispondi li (ovviamente se vuoi) ...
AncheNO In merito a dove cade la responsabilità: se anche con openwrt avete dovuto creare uno script, direi che la responsabilità ricade sull'unica cosa comune e cioà il firmwate della quectel, o mi sto predendo qualcosa?
prima di risponderti a questo puoi leggere questi documenti che ti darà modo di capire cosa c'e' sotto il cofano di questo router:
https://teklager.se/en/knowledge-base/openwrt-4g-wwan-configuration/
https://www.ofmodemsandmen.com/protocol.html
https://unix.stackexchange.com/questions/523321/difference-between-ppp-qmi-and-at-commands
quindi il modulo LTE della Quectel ha varie modalità di utilizzo QMI, MBIM e RNDIS (gestibili se il firmware del router basta installare i pacchetti necessari per la/le modalità scelte)
https://openwrt.org/docs/guide-user/network/wan/wwan/ltedongle#about
le prime due fanno si che sia il router (inteso come firmware OEM o Openwrt) che debbano gestire l'eventuale cambio di indirizzo IP / gateway quindi è il firmware che deve gestire questo.
quindi la competenza va al firmware di Zyxel gestire questa anomalia.
nella modalità RNDIS il modulo Quectel diventa un router che fa il mascheramento delle connessioni vedi questi documenti (per capire cosa è il double-nat):
https://www.reddit.com/r/HomeNetworking/comments/8tl0wv/whats_double_nat_and_why_do_i_want_to_avoid_it/?tl=it
https://openwrt.org/docs/guide-user/network/integrating-openwrt-introduction#what_is_double_nat
e in questa modalità che ho testato per circa un mese ho verificato che il modulo effettua tutto correttamente (gestisce lui la connessione/riconnessione),
ma purtroppo in questa modalità un eventuale indirizzo IP dinamico non sarebbe sul router (inteso come firmware OEM o Openwrt) ma sul modulo LTE quindi se sei dietro CGNAT non ti cambierà la vita ma se in futuro il provider ti concederà un indirizzo IPv4 o v6 sarebbe meglio evitarlo
vedi documento sotto per capire cosa è il CGNAT
https://en.wikipedia.org/wiki/Carrier-grade_NAT
vedi documento sotto per capire che è meglio evitare il doppio-nat in alcune ipotesi
https://forum.openwrt.org/t/lte-modem-only-issues-inet6-ip-address-how-to-make-it-give-ipv4-as-well/198746
una possibile soluzione è sfruttare questo pacchetto (che gestisce il modulo LTE)
https://openwrt.org/docs/guide-user/network/wan/wwan/modemmanager
ma sconsiglio questo in quanto se poi si volessero inviare dei comandi AT darebbe qualche problema
https://forum.openwrt.org/t/send-at-command-while-using-modemmanager/196440
anche Zyxel con gli ultimi firmware ho aggiunto la funzionalità di controllo (ma a quanto hanno affermato altri utenti non viene correttamente risolta la questione).
https://forum.fibra.click/d/39114-aggiornamento-firmware-zyxel-lte5398-m904/934
spero di aver risposto in maniera semplice alla tua domanda (e mi scuso per la quantità di documenti che ti ho fatto leggere),
quindi spero che sia chiara a chi imputare la responsabilità ... di questo problema
AncheNO le sitruzioni riguardano la gestione del crontab e non il contenuto dei singoli script giusto? nel caso dove posso trovare il contenuto dei singoli script?
dove poter trovare gli script mi sembra di averlo detto chiaramente in questo post:
https://forum.fibra.click/d/39114-aggiornamento-firmware-zyxel-lte5398-m904/983
il link agli script generici (valgono però se utilizzati su Openwrt):
https://github.com/compact21/openwrt-script/
il link al'demone (vale però se utilizzati su Openwrt con il modulo LTE in modalità MBIM):
https://github.com/compact21/watchdog_mbim
AncheNO lo/gli script che viene eseguito periodicamente esegue un check della connessione e solo in caso negativo esegue il ripristino, oppure esegue direttamente il ripristino (giusto per capire come settare il timer);
esatto viene eseguito periodicamente e quando rileva che manca la connettività procede al suo ripristino:
ogni minuto se viene scelto di utilizzare un "crontab"
per degli esempi su cosa significa vedi:
https://www.webarea.it/howto/linux/utilizzo-di-crontab-per-schedulare-processi-con-esempi-sotto-linux_1
oppure con un demone che gira in sottofondo (qui ogni quanto settare il timer dipende da te consiglio di non ridurre sotto i 5 secondi)
cosa è un demone lo trovi più o meno spiegato qui:
https://www.ilsoftware.it/focus/daemon-linux-cosa-sono-e-perche-in-realta-sono-angeli/
AncheNO tu hai messo gli script su chiavetta usb, c'è un motivo particolare?
Grazie!
veramente non mi sembra di aver mai detto una cosa simile
ho consigliato di effettuare un dump delle partizioni prima di procedere all'installazione di Openwrt (consiglio non obbligo è una cosa facoltativa)
sul mio router tutti gli script sono caricati direttamente sulla partizione interna (vedi sotto se vuoi delle conferme visive alla domanda posta):
`
root@LTE5398-M904:~# mount
/dev/ubiblock0_0 on /rom type squashfs (ro,relatime,errors=continue)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_1 on /overlay type ubifs (rw,noatime,assert=read-only,ubi=0,vol=1)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,noexec,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,noatime)
bpffs on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
/dev/sda1 on /tmp/mnt type ext2 (rw,relatime)
root@LTE5398-M904:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 12.0M 12.0M 0 100% /rom
tmpfs 121.6M 488.0K 121.2M 0% /tmp
/dev/ubi0_1 8.3M 540.0K 7.3M 7% /overlay
overlayfs:/overlay 8.3M 540.0K 7.3M 7% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda1 14.2G 598.0M 12.9G 4% /tmp/mnt
root@LTE5398-M904:~# pwd
/root
root@LTE5398-M904:~# ls -la
drwxr-x--- 1 root root 2776 Jun 20 13:49 .
drwxr-xr-x 1 root root 544 Feb 22 20:55 ..
-rwx------ 1 root root 2448 Jun 19 20:17 atcmd
-rwx------ 1 root root 571 Mar 29 18:43 button
-rwx------ 1 root root 380 May 17 19:01 cell_band
-rwx------ 1 root root 629 May 21 23:53 cell_info
-rwx------ 1 root root 90 Apr 28 00:53 clearlog
-rwx------ 1 root root 222 Mar 29 18:07 clearmem
-rwx------ 1 root root 518 Apr 4 08:45 connection_reset
-rwx------ 1 root root 1044 May 21 00:45 disable_cell_lock
-rwx------ 1 root root 45 Feb 6 2024 disable_ipv6_wan
-rwx------ 1 root root 1412 Mar 29 18:42 ipaddress
-rwx------ 1 root root 507 Jan 28 2024 led_off
-rwx------ 1 root root 929 Jan 28 2024 led_status
-rwx------ 1 root root 1564 Mar 29 18:43 listpackages
-rwx------ 1 root root 157 Jun 12 10:48 logread_wanconnect
-rw-r--r-- 1 root root 471 May 22 2024 my-def-pkgs
-rwx------ 1 root root 53 Feb 19 2024 opkg_purge
-rwx------ 1 root root 237 Mar 29 18:44 ping_8888
-rwx------ 1 root root 1086 Feb 12 23:55 recive_sms
-rwx------ 1 root root 686 Apr 18 23:02 set_reboot_at_4_am
-rwx------ 1 root root 108 Jun 12 10:44 show_current_cell_lock
-rwx------ 1 root root 1379 Feb 17 21:49 show_list_call_lost
-rwx------ 1 root root 542 Feb 12 23:55 show_signal_status
-rwx------ 1 root root 2625 Mar 29 18:46 status
-rwx------ 1 root root 97 Jan 28 2024 uci_parse_error
-rwx------ 1 root root 58 Jan 3 10:26 voice_led_off
-rwx------ 1 root root 510 Apr 18 10:12 voice_led_up
-rwx------ 1 root root 803 Mar 29 18:22 wan2_connect
-rwx------ 1 root root 794 Mar 29 18:22 wan_connect
-rwx------ 1 root root 3870 May 21 00:56 watchdog_mbim
-rwx------ 1 root root 229 Feb 3 10:53 wifi_activate
-rwx------ 1 root root 123 Jan 28 2024 wifi_count_client
-rwx------ 1 root root 566 Aug 28 2024 wifi_deactivate
-rwx------ 1 root root 340 Jun 3 12:02 wifi_off
-rwx------ 1 root root 501 Jun 3 12:03 wifi_up
root@LTE5398-M904:~# ls -la /etc/init.d/watch*
-rwxr-xr-x 1 root root 2636 May 18 18:10 /etc/init.d/watchdog_mbim
root@LTE5398-M904:~# cat /etc/crontabs/root
#min hour day month day-week command
#0-59 0-23 1-31 1-12 0-6(0=Sunday) exec
#*/5 * * * * /root/disable_cell_lock
/15 * * * * /root/wifi_deactivate
#/15 * * * * /root/ping_8888
#0 2,6,12 * * * /root/clearmem
#0 /2 * * * /root/show_current_cell_lock
# * * * * /root/wan_connect
#* * * * * flock -n /tmp/lock/wan_connect.lock /root/wan_connect
#* * * * * /root/wan2_connect
0,30 9-21 * * * /root/voice_led_up
1 22 * * * /root/voice_led_off
#* * * * * flock -n /tmp/lock/wan2_connect.lock /root/wan2_connect
#* * * * * flock -n /tmp/lock/ipaddress.lock /root/ipaddress
root@LTE5398-M904:~# cd /tmp/mnt/
root@LTE5398-M904:/tmp/mnt# find ./ -type f
./openwrt_install/sysupgrade_list_package_add.txt
./openwrt_install/openwrt-ramips-mt7621-zyxel_lte5398-m904-squashfs-sysupgrade.bin
./openwrt_install/copy_openwrt_on_device.txt
./openwrt_install/openwrt-24.10.0-rc7-3d8297f268fe-ramips-mt7621-zyxel_lte5398-m904-squashfs-sysupgrade.bin
./openwrt_install/openwrt-24.10.0-rc6-fe659b50b55a-ramips-mt7621-zyxel_lte5398-m904-squashfs-sysupgrade.bin
./openwrt_install/openwrt-ramips-mt7621-zyxel_lte5398-m904-initramfs-recovery.bin
./openwrt_install/sha256sum.txt
./dump_mtd/mtd8.bin
./dump_mtd/mtd6.bin
./dump_mtd/old_28_01_2024/mtd8.bin
./dump_mtd/old_28_01_2024/mtd6.bin
./dump_mtd/old_28_01_2024/mtd3.bin
./dump_mtd/old_28_01_2024/mtd1.bin
./dump_mtd/old_28_01_2024/mtd4.bin
./dump_mtd/old_28_01_2024/mtd5.bin
./dump_mtd/old_28_01_2024/list_proc_mtd.txt
./dump_mtd/old_28_01_2024/mtd0.bin
./dump_mtd/old_28_01_2024/mtd7.bin
./dump_mtd/old_28_01_2024/mtd9.bin
./dump_mtd/old_28_01_2024/mtd2.bin
./dump_mtd/mtd3.bin
./dump_mtd/mtd1.bin
./dump_mtd/mtd4.bin
./dump_mtd/mtd5.bin
./dump_mtd/list_proc_mtd.txt
./dump_mtd/make_dump
./dump_mtd/mtd0.bin
./dump_mtd/old_9_12_2023/mtd8.bin
./dump_mtd/old_9_12_2023/mtd6.bin
./dump_mtd/old_9_12_2023/mtd3.bin
./dump_mtd/old_9_12_2023/mtd1.bin
./dump_mtd/old_9_12_2023/mtd4.bin
./dump_mtd/old_9_12_2023/mtd5.bin
./dump_mtd/old_9_12_2023/list_proc_mtd.txt
./dump_mtd/old_9_12_2023/mtd0.bin
./dump_mtd/old_9_12_2023/mtd7.bin
./dump_mtd/old_9_12_2023/mtd9.bin
./dump_mtd/old_9_12_2023/mtd2.bin
./dump_mtd/mtd7.bin
./dump_mtd/mtd9.bin
./dump_mtd/mtd2.bin
./scritp/connections_53_853
./scritp/status
./scritp/test.output
./scritp/connections_443
./scritp/test
./backups/backup-2024-12-17T1125.tgz
./backups/list-add-package-2025-02-23T1706.txt
./backups/backup-2024-12-06T0108.tgz
./backups/backup-2025-01-24T1211.tgz
./backups/firmware-2025-02-23T1706.bin
./backups/backup-2025-02-23T1706.tgz
./backups/firmware-2025-02-05T2347.bin
./backups/backup-2024-12-06T1138.tgz
./backups/backup-2025-02-05T2347.tgz
`