Script to notify you if they are intruders or new connections on your network using ntfy.sh
Subcribe to a topic in ntfy.sh If not, you will not receive the notification.
Clone the project
git clone https://github.com/nothingbutlucas/notify_me_the_intrudersGo to the project directory
cd notify_me_the_intrudersEdit the script (I use nvim, but u can use vim or nano)
nvim notify_me_the_intruders.shChange the topic variable
topic=YOUR_TOPIC_HERERun the script to test it
./notify_me_the_intruders.shIf it works, create a cron (Every 5 minutes example)
crontab -e*/5 * * * * /route/to/the/script/notify_me_the_intruders.sh >/dev/null 2>&1If it doesn't work, check that your topic name doesn't have a special character or a bash reserved character and if it does, change it or find a way to skip it.
Script para notificarte de los intrusos o nuevas conexiones en tu red en tu celular usando ntfy.sh
Subscribirse a un topico en ntfy.sh Si no, no te va a llegar la notificación
Clonar el proyecto
git clone https://github.com/nothingbutlucas/notify_me_the_intrudersIr al directorio del proyecto
cd notify_me_the_intrudersEditar el script (Yo uso nvim, pero usa lo que quieras)
nvim notify_me_the_intruders.shCambia la variable topic
topic=YOUR_TOPIC_HERECorre el script para testear que funcione
./notify_me_the_intruders.shSi funciona crea un cron (Ejemplo de 5 minutos)
crontab -e*/5 * * * * /route/to/the/script/notify_me_the_intruders.sh >/dev/null 2>&1Si no funciona, verifica que el nombre de tu topico no tenga algún caracter especial o uno reservado por bash y si lo tiene cambialo o busca como esquipearlo.