Log conexion internet

Post new topic   Reply to topic    DD-WRT Forum Index -> Hardware basado en Atheros
Author Message
hernan10
DD-WRT Novice


Joined: 21 May 2022
Posts: 3

PostPosted: Sat May 21, 2022 17:37    Post subject: Log conexion internet Reply with quote
Hola, soy nuevo en el foro y con temas de networking. Tengo problemas con el proveedor de internet. Esta configurado papertrail y los niveles de log estan en High en ddwrt.
Alguien sabe como puedo loggear los cortes de conexion?
gracias
Sponsor
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat May 21, 2022 18:06    Post subject: Reply with quote
El único signo en el syslog de que WAN/Internet no está conectado es el NTP si está habilitado no se actualizará.

Esto deja mensajes bastante obvios.

Aparte de eso, deberás crear un script de algún tipo de solución que supervise la conexión WAN y registre en syslog en caso de falla.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
hernan10
DD-WRT Novice


Joined: 21 May 2022
Posts: 3

PostPosted: Sat May 21, 2022 18:24    Post subject: Reply with quote
the-joker wrote:
El único signo en el syslog de que WAN/Internet no está conectado es el NTP si está habilitado no se actualizará.

Esto deja mensajes bastante obvios.

Aparte de eso, deberás crear un script de algún tipo de solución que supervise la conexión WAN y registre en syslog en caso de falla.


Gracias
NTP segun lo que lei en los foros, solo actualiza cuando hace reboot y 120 Seg despues. Creo q esto no serviria.

Con respecto a la segunda parte me resulta un tanto complejo armar script dejarlo corriendo en el router y que escriba en log cuando no responda.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat May 21, 2022 19:35    Post subject: Reply with quote
Eche un vistazo a este hilo y vea si puede adaptar el script para registrar en lugar de enviar correo electrónico

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=642888

Por supuesto, tendrá que adaptar la secuencia de comandos para los nombres de los adaptadores de enrutador, etc.

Buena suerte

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14102
Location: Texas, USA

PostPosted: Sat May 21, 2022 20:55    Post subject: Reply with quote
Me encanta cómo las búsquedas web no devuelven el número de tema.

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=145436

La única otra opción es usar el proxy/connection watchdog en Administration -> Keep Alive, a menos que @eibgrad tenga un script o haya uno enla wiki somewhere.

https://forum.dd-wrt.com/wiki/index.php/Script_Examples (Keep ISP from disconnecting due to lack of traffic)

https://forum.dd-wrt.com/wiki/index.php/Useful_Scripts

https://forum.dd-wrt.com/wiki/index.php/Script_Execution

https://forum.dd-wrt.com/wiki/index.php/Startup_Scripts

Es posible que tenga que descubrir cómo adaptar este:

https://forum.dd-wrt.com/wiki/index.php/Script_Examples/Monitoring_a_Webstar_2100_Cable_Modem

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sun May 22, 2022 10:10    Post subject: Reply with quote
Para inspirarse, una idea simple usando ping.

Todo es posible con scripting, scripts más complejos pero tal vez innecesarios para su caso de uso

https://stackoverflow.com/questions/6357515/batch-files-using-ping-to-test-network-connectivity

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
hernan10
DD-WRT Novice


Joined: 21 May 2022
Posts: 3

PostPosted: Sun May 22, 2022 11:05    Post subject: Reply with quote
Gracias a todos por las respuestas, tengo tarea para hacer con todas las ideas q postearon. Super util.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sun May 22, 2022 13:36    Post subject: Reply with quote
Very Happy Cool
_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Hardware basado en Atheros All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum