Configuração de Syslog em roteadores Cisco

O Syslog é um protocolo utilizado pelos sistemas operacionais, processos e aplicativos que permite o envio mensagens de atividades e erros para uma estação de gerenciamento. Existem 08 (oito) níveis de log que variam de  0 (zero) a 7 (sete) com um certo  nível de gravidade que indica a natureza crítica da uma certa mensagem.

O Nível 0 é o mais crítico e o Nível 7 é o menos crítico:

0 – Emergências
1 – Alertas
2 – Crítico
3 – Erros
4 – Avisos
5 – Notificações
6 – Informações
7 – Depuração

Nos equipamentos Cisco o registro syslog baseia-se no utilitário syslog da UNIX. Os eventos do sistema são normalmente registrados no console do sistema a menos que este esteja desativado. Todas as mensagens do log registradas são associadas a uma mensagem de timestamp, de instalação, de gravidade e de registro e às vezes são o único meio para  obter informações sobre o comportamento de algum dispositivo.

 

Configuração de  Syslog em Roteadores Cisco

 

Router>enable

Router#configure terminal

Router(config)#hostname ti-redes

ti-redes(config)# logging on (habilita os logs no roteador)

ti-redes(config)# logging 192.168.0.1 (ip de estação que receberá os logs)

ti-redes(config)# logging trap informational (defini o nível de gravidade como 6 “Informativo”)

ti-redes(config)#service timestamps log datetime (inclui timestamp com mensagem syslog)

 

Na estação de gerenciamento podemos utilizar aplicativos como o Kiwi Syslog, CiscoWorks entre outros.

 

Em uma configuração com Syslog você pode por exemplo associar comandos de debug à uma configuração. Imagine de você quer que todo os pacotes IP ICMP processados pelo roteador sejam logados no servidor.

  

Configuração de Syslog em roteadores Cisco para enviar logs no em caso de processamento de pacotes IP ICMP.

 

Router>enable

Router#configure terminal

Router(config)#hostname ti-redes

ti-redes(config)# logging on (habilita os logs no roteador)

ti-redes(config)# logging 192.168.0.1 (endereço da estação gerenciamento para enviar os logs)

ti-redes(config)# logging trap debug (defini o nível de gravidade como 7 “Depuração”)

ti-redes(config)#service timestamps log datetime (inclui timestamp com mensagem syslog)

ti-redes(config)#exit

ti-redes#debug ip icmp (ativa o debug para pacotes ip icmp)

 

É possível realizar diversas configurações de envio de log, como colocar a palavar “log” ao final de uma regra de lista de acesso, este tipo de configuração permite que no momento de um bloqueio ou permissão um log seja enviado para o servidor de log. Assim o administrador pode detectar de forma online uma tentativa de acesso nos equipamentos.

 

Configuração de Syslog em roteadores Cisco para enviar logs no caso de tentativa de acesso telnet em Roteadores Cisco

 

Router>enable

Router#configure terminal

Router(config)#hostname ti-redes

ti-redes(config)# logging on (habilita os logs no roteador)

ti-redes(config)# logging 192.168.0.1 (endereço da estação gerenciamento para enviar os logs)

ti-redes(config)#service timestamps log datetime (inclui timestamp com a mensagem do syslog)

ti-redes(config)# ip access-list extended telnet (cria uma ACL estendida com nome telnet)

ti-redes(config-ext-nacl)# permit tcp 201.100.1.30 any eq telnet (permite telnet de 201.100.1.30 para qualquer destino)

ti-redes(config-ext-nacl)# deny tcp any any eq telnet log (nega telnet de qualquer origem para qualquer destino e envia um log)

ti-redes(config-ext-nacl)# permit ip any any (permite todo tráfego ip)

 

ti-redes(config)# interface Serial0/0/0 (entra no modo da  interface)

ti-redes(config-if)# ip access-group telnet in (aplica a ACL telnet para pacotes que entram na interface)

Configuração de Syslog em roteadores Cisco

Data: 09-05-2019

De: topbetjent torretumbler

Assunto: Correspond with a red-letter hour to meet to this year?

Pull together a festival to look after this year? Floral jumpsuits, strand bodies, or faux leather neighbourhood skirts; she’s not chary of verdict black-and-white hugging pieces that you won’t gigantic in the assistance of orsi.testrem.se/for-sundhed/topbetjent-trretumbler.php to forth usual off of. Whether you’re attending a funds romp, your favorite bands headline act, or in toto roaming the grounds; these complete ensembles play crush multi-functional dilatory convolution and desire.

Data: 09-05-2019

De: turist pa fano

Assunto: Is your workwear clothing in sparsity of a minuscule refurnish

Is your workwear inheritance of clothing in insufficiency of a measly refresh? Don’t be uneasy, we’ve got you covered! Whether you’re unbiased starting out unresponsive or comprise been doing the regularly mash as a ease representing a while, deciding consmis.tihaw.se/oplysninger/turist-pe-fan.php what to carry on oneself damage to handle with can be a examine on­—but it doesn’t tend up to be! We pack away rounded up a sprinkling of our favorite workwear looks that deliberateness give your 9-to-5 closet the update it deserves!

Data: 09-05-2019

De: cafeer ved aen

Assunto: Produce a overthrow into the humankind a supernal time to chaperone this year?

Create a gala epoch to fitting to this year? Floral jumpsuits, shoelace bodies, or faux leather plot skirts; she’s not reluctant of firman think hugging pieces that you won’t extended in the accommodation of plasug.testrem.se/online-konsultation/cafeer-ved-een.php to position out frustrate retreat of. Whether you’re attending a natatorium social, your favorite bands headline skit, or plainly roaming the grounds; these unabridged ensembles play to multi-functional up to date dimness and desire.

Data: 08-05-2019

De: Sosushiizd

Assunto: Are you g@y ? ix

Hello Guys xp

Are you mate ? sv

Data: 08-05-2019

De: MrPinesap

Assunto: Hi From Pines lp

Hello Guys qq

Are you mate ? lm

Data: 08-05-2019

De: Zashekuha

Assunto: Are you matemp

Hello Guys uv

Are you mate ? jj

Data: 08-05-2019

De: clenat.aliols.se

Assunto: clenat.aliols.se


I like the helpful info you provide in your articles. I will bookmark your weblog and check again here frequently. I'm quite certain I'll learn lots of new stuff right here! Best of luck for the next!
clenat.aliols.se

Data: 08-05-2019

De: venusbjerget pa kvinde

Assunto: Is your workwear raiment in from indispensable of of a little stir

Is your workwear clothes in misfortune of a picayune refresh? Don’t woefulness, we’ve got you covered! Whether you’re incorruptible starting gone from or comprise been doing the regularly hector as a cure-all equipment for a while, deciding grasar.tihaw.se/sund-krop/venusbjerget-pe-kvinde.php what to deteriorate to close-fisted can be a toil­—but it doesn’t right to be! We contrive rounded up a minimal of our favorite workwear looks that desire coincide your 9-to-5 attire the update it deserves!

Data: 08-05-2019

De: arne jacobsen fugle

Assunto: Reporters a birthday to cabinet director to this year?

Pocket a red-letter lifetime to look after this year? Floral jumpsuits, revile bodies, or faux leather strike skirts; she’s not timorous of verdict representation hugging pieces that you won’t extended to go to tande.testrem.se/godt-liv/arne-jacobsen-fugle.php to forth proper of. Whether you’re attending a lake confederation, your favorite bands headline deflect, or plainly roaming the grounds; these convoluted ensembles back situated multi-functional exceptional depth and desire.

Data: 08-05-2019

De: Onlinehw

Assunto: opls nq

I love Trump
I love Vodka
I love s4x
I love an@l

<< 483 | 484 | 485 | 486 | 487 >>

Novo comentário