Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
341 stars 52 forks source link

Remote assistance not working after reboot #299

Closed ettoremazza closed 5 years ago

ettoremazza commented 5 years ago

L'accesso da WAN non funziona se dopo il reboot prima non si accede almeno una volta da LAN (non serve nemmeno fare il login).

Inoltre (ma su questo ho bisogno di fare altri test) dopo un po' l'accesso non funziona più ed è necessario disattivare e riattivare l'accesso remoto dalla GUI.

Device Model: DGA4130 Gui Version: 8.8.77 FW: AGTEF_1.2.0_001

ettoremazza commented 5 years ago

Inoltre I settaggi porta casuale e password casuale non funzionano. Porta casuale conferma la porta precedentemente impostata manualmente. Password casuale genera in effetti una password, ma poi con quella non è possibile accedere (probabilmente viene visualizzata non correttamente)

nclmrc commented 5 years ago

se vuoi un consiglio per accedere da web ti consiglio di mettere questa regola in /etc/config/firewall

config rule 'Nginx' option name 'Nginx' option src 'wan' option proto 'tcp' option dest_port '80' option family 'ipv4' option target 'ACCEPT'

nclmrc commented 5 years ago

se vuoi cambiare porta: config redirect option src 'wan' option src_dport '8080' option dest 'lan' option dest_ip '192.168.1.1' option dest_port '80' option proto 'tcp'

ettoremazza commented 5 years ago

Grazie, ma da GUI la selezione della porta e della password manualmente funzionano. La prima regola sul firewall cosa fa ? accetta la porta 80, ok, ma dove la reindirizza ? Al server web della GUI ?

nclmrc commented 5 years ago

sempre sull'80. se vuoi aprire la 8080 sull'80 devi fare il redirect

ettoremazza commented 5 years ago

No, queste aggiunte non cambiano nulla. Il problema rimane. Ma a te funziona ?

nclmrc commented 5 years ago

Devi fare anche /etc/init.d/firewall restart

Il Gio 25 Ott 2018, 17:50 Libero notifications@github.com ha scritto:

No, queste aggiunte non cambiano nulla. Il problema rimane. Ma a te funziona ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Ansuel/tch-nginx-gui/issues/299#issuecomment-433104452, or mute the thread https://github.com/notifications/unsubscribe-auth/AkzjJBwQ79_vTwmypDe3Z1n8xvzrNe5Cks5uod2zgaJpZM4X5xzs .

ettoremazza commented 5 years ago

Ho riavviato il router. Ma ripeto a te funziona?

Il 25 ott 2018 17:52, Niccolò Marchi notifications@github.com ha scritto: Devi fare anche /etc/init.d/firewall restart

Il Gio 25 Ott 2018, 17:50 Libero notifications@github.com ha scritto:

No, queste aggiunte non cambiano nulla. Il problema rimane. Ma a te funziona ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Ansuel/tch-nginx-gui/issues/299#issuecomment-433104452, or mute the thread https://github.com/notifications/unsubscribe-auth/AkzjJBwQ79_vTwmypDe3Z1n8xvzrNe5Cks5uod2zgaJpZM4X5xzs .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Ansuel/tch-nginx-gui/issues/299#issuecomment-433105434, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ai14G35grTjji4Vn9NzkgMPmXf5N-gyHks5uod5RgaJpZM4X5xzs.

Ettore Mazza

Mail: ettore@ettoremazza.com

Mob. +39 334 6564777

nclmrc commented 5 years ago

Si la prima

Il 25 Ott 2018 18:34, "Libero" notifications@github.com ha scritto:

Ho riavviato il router. Ma ripeto a te funziona?

Il 25 ott 2018 17:52, Niccolò Marchi notifications@github.com ha scritto: Devi fare anche /etc/init.d/firewall restart

Il Gio 25 Ott 2018, 17:50 Libero notifications@github.com ha scritto:

No, queste aggiunte non cambiano nulla. Il problema rimane. Ma a te funziona ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/Ansuel/tch-nginx-gui/issues/299#issuecomment-433104452 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AkzjJBwQ79_vTwmypDe3Z1n8xvzrNe5Cks5uod2zgaJpZM4X5xzs

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/Ansuel/tch-nginx-gui/issues/299#issuecomment-433105434>, or mute the thread< https://github.com/notifications/unsubscribe-auth/Ai14G35grTjji4Vn9NzkgMPmXf5N-gyHks5uod5RgaJpZM4X5xzs

.

Ettore Mazza

Mail: ettore@ettoremazza.com

Mob. +39 334 6564777

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Ansuel/tch-nginx-gui/issues/299#issuecomment-433120236, or mute the thread https://github.com/notifications/unsubscribe-auth/AkzjJCbIEBey5hYSsTPun-Q76jAW1l4_ks5uoef4gaJpZM4X5xzs .

ettoremazza commented 5 years ago

Scusa ma che significa la prima ?

nclmrc commented 5 years ago

Questa configurazione a me funziona

config rule 'Nginx' option name 'Nginx' option src 'wan' option proto 'tcp' option dest_port '80' option family 'ipv4' option target 'ACCEPT'

nclmrc commented 5 years ago

Se vuoi aprire una porta esterna diversa dell'interna

config redirect   option src 'wan'   option src_dport 'n°porta_ext'   option dest 'lan'   option dest_ip 'ip_modem'   option dest_port 'n°porta_int'   option proto 'tcp'

config rule   option src 'wan'   option dest_port 'n°porta_ext'   option target 'ACCEPT'   option proto 'tcp'

ettoremazza commented 5 years ago

Come ti ho già detto il problema non è questo, l'accesso funziona, ma prima devi collegarti una volta dalla LAN

nclmrc commented 5 years ago

In questo modo io non ho la necessità

Il Ven 26 Ott 2018, 19:37 Libero notifications@github.com ha scritto:

Come ti ho già detto il problema non è questo, l'accesso funziona, ma prima devi collegarti una volta dalla LAN

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Ansuel/tch-nginx-gui/issues/299#issuecomment-433486774, or mute the thread https://github.com/notifications/unsubscribe-auth/AkzjJO8ChkZz0vYeOnTzIGkJnc4Na9Wrks5uo0h0gaJpZM4X5xzs .

FrancYescO commented 5 years ago

Infatti non deve funzionare in quel modo, se e' necessario un login da lan prima e' un bug. Allo stesso modo forwardare la porta wan non e' una soluzione

FrancYescO commented 5 years ago

@ettoremazza puoi aggiornarci sul se hai ancora il problema?

ettoremazza commented 5 years ago

Il problema è ancora presente con la versione 8.9.64

FrancYescO commented 5 years ago

io non riesco a riprodurre il problema... puoi fare questo tentativo:

ettoremazza commented 5 years ago

Per me ora è risolto.

dga4130-renato commented 5 years ago

E vero. Ho provato oggi. Se non ti connetti dalla Lan prima, dalla Wan non va . Se fai un reboot sei fuori.

FrancYescO commented 5 years ago

@dga4130-renato su che firmware sei? mi dai il risultato di questi comandi?

ls -l /etc/rc.d/ | grep /ra
cat /etc/init.d/ra
dga4130-renato commented 5 years ago

1.2.. gui l'ultima sviluppatore. Dga 4132

dga4130-renato commented 5 years ago

root@modemtim:~# ls -l /etc/rc.d/ | grep /ra lrwxrwxrwx 1 root root 21 Aug 31 16:13 K99random_seed -> ../init.d/random_seed lrwxrwxrwx 1 root root 12 Aug 31 16:13 S85ra -> ../init.d/ra root@modemtim:~# cat /etc/init.d/ra

!/bin/sh /etc/rc.common

must come after nginx!

START=85

boot() { if [ ! -z $(uci show web | grep "web.state_.*.enabled=1") ]; then while true; do sleep 1 wget -O /dev/null -q http://127.0.0.1 && return done fi }

FrancYescO commented 5 years ago

c'e bisogno delle prove di questo commento https://github.com/Ansuel/tch-nginx-gui/issues/299#issuecomment-442366390

dga4130-renato commented 5 years ago

lo terro' monitorato per capire meglio..

dga4130-renato commented 5 years ago

Difatti avevi ragione.. se lanci curl 127.0.0.1 da ssh poi la connessione da remoto funziona.

dga4130-renato commented 5 years ago

Ho provato 3 volte. Se da ssh lanci reboot poi non si connette più da http a meno che non lanci curl 127.0.0.1

dga4130-renato commented 5 years ago

c'e bisogno delle prove di questo commento #299 (comment) tutto fatto. se non dai il comando curl 127.0.0.1 non riparte la connessione remota

kevdagoat commented 5 years ago

Status??

dga4130-renato commented 5 years ago

In che senso ?

dga4130-renato commented 5 years ago

Se lanci upgradegui da ssh riparte

FrancYescO commented 5 years ago

non c'e bisogno di upgradegui basta curl 127.0.0.1

dga4130-renato commented 5 years ago

Anche... Non sarebbe possibile implementarlo in init.d ?

FrancYescO commented 5 years ago

in realta' gia' c'e' ma non si capisce perche' funziona a caso

dga4130-renato commented 5 years ago

E mettere curl 127.0.0.1 >/tmp/result.log ?

dga4130-renato commented 5 years ago

cat /etc/init.d/ra Non c'è curl 127.0.0.1

FrancYescO commented 5 years ago

c'e wget che e' la stessa cosa per quello che deve fare

dga4130-renato commented 5 years ago

quindi non c'e modo ?