Jump to content
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SCRIPT PRONTO] Monitoramento de IPs

Featured Replies

Salve PDH!

 

Aos que quiserem monitorar os IPs dos servidores em blacklists, de forma independente e automática, segue código:

 

 

Arquivo: rbl.sh

#!/bin/bash
COLUMN=resultadorbl
rm -f /tmp/resultado-rbl.txt
DNSBLlist=`grep -v ^# <<!
b.barracudacentral.org
bl.spamcop.net
bl.spamcannibal.org
cbl.abuseat.org
dnsbl.sorbs.net
dnsbl-0.uceprotect.net
dnsbl-1.uceprotect.net
dnsbl-2.uceprotect.net
dnsbl-3.uceprotect.net
!`
MSERVIPS=`grep -v ^# <<!
1.1.1.2
1.1.1.3
1.1.1.4
!`
for i in $DNSBLlist
do
for e in $MSERVIPS
do
IP=`echo $e | awk 'BEGIN { FS = "." } ; { print $4 "." $3 "." $2 "."$1 }'`
if dig $IP.$i +short | grep -q "^127.0.0."
then
echo "IP $e LISTADO! Blacklist: $i
" >> /tmp/resultado-rbl.txt
fi
done
done
mail -s "[ALERTA] Blacklists" email@email.com.br < /tmp/resultado-rbl.txt

No meu caso eu criei o arquivo rbl.sh na pasta /root e adicionei o seguinte comando CRON para ser executado diariamente:

 

0 2 * * * sh /root/rbl.sh

 

 

Assim recebo diariamente um e-mail com os IPs listados.

 

Gostou? Curta o post!  B)

 Hospedagem de Sites, Revenda de Hospedagem, Servidores Virtuais, Registro de Domínios

  • Author

@Jefferson

 

Bom dia

 

Pode postar um print para nos vermos funcionando?

 

Apenas execute o script no SSH do seu servidor e você receberá um e-mail informando quais IPs estão listados e em qual blacklist.

 

Exemplo:

 

IP 127.0.0.1 LISTADO! Blacklist: b.barracudacentral.org

 Hospedagem de Sites, Revenda de Hospedagem, Servidores Virtuais, Registro de Domínios

Mas ele envia apenas quando está listado ou toda vez que faz a checagem ?


  • Author

Mas ele envia apenas quando está listado ou toda vez que faz a checagem ?

 

Somente quando o IP está listado. O monitoramento ficaria complicado por exemplo, para 100 IPs verificados em apenas 5 blacklists. Seriam 500 registros enviados em um e-mail para você.

 

Em nosso caso são 180 IPs em 32 blacklists verificadas...

 Hospedagem de Sites, Revenda de Hospedagem, Servidores Virtuais, Registro de Domínios

Muito bom, é uma boa coisa para a comunidade, vou até fazer uns ajustes para mim.

Chamou? Estamos ai!


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Important Information

Do you agree with our terms?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.