torradeira.net



Milhares de dicas e tutoriais de informatica!

Flower

Segurança no linux



2,887 acessos

Bem moçada to aki pra fala um pouco de segurança no Linux, pois mesmo

sendo um OS instavel ele contem algumas falhas e alguns bug's. Porem nesse

txt irei ensinar como vc se proteger usando alguns comandos no /etc/inetd.conf.


A proposito aki nessa HP ( www.underway.cjb.net ), tem uma Firewall dum

kmarada muito boa, kra eh simples e eficaz, a FirewallManager pegue ela ae na secao

de DOWNLOADS tem tb a do BSDi, muito boa tb, pega-a na parte de PROGRAMAS.

Chega de bla bla bla e vamo nessa!

COMEÇANDO

=========

Edite o arkivo /etc/inetd.conf e adicione as seguintes linhas, elas fasem

com q a maquina restrinja o acesso por:

======================

| SERVIÇO   | PORTA  |

======================

| Netstat   |   15   |

++++++++++++++++++++++

| FTP       |   21   |

++++++++++++++++++++++

| Finger    |   79   |

++++++++++++++++++++++

| Systat    |   11   |

++++++++++++++++++++++

| Telnet    |   23   |

++++++++++++++++++++++

Estas saum portas q devem ser FECHADAS. Bem, acresente essas linhas sem falta,

ALL RIGHT?!

#/etc/inetd.conf

#netstat stream  tcp     nowait  root    /usr/sbin/tcpd /bin/netstat -a

#ftp	stream	tcp	nowait	root	/usr/sbin/tcpd	wu.ftpd -l -i -a

#finger  stream  tcp     nowait  nobody  /usr/sbin/tcpd  in.fingerd -w

#systat  stream  tcp     nowait  nobody  /usr/sbin/tcpd  /bin/ps -auwwx

#telnet	stream  tcp     nowait  root    /usr/sbin/tcpd	in.telnetd

#/etc/inetd.conf

Ae agora que os principais acessos estao lacrados voce esta um pouco, naum,

totalmente seguro, pois naum existe sistema q seja totalmente seguro all right?!

Ae uma outra dica importante eh conhecer bem o seu sistema e sempre arrumar

os seus bugs, procure sempre usar uma versao nova e instavel do Kernel, e naum esqueca

tabem de proteger seus arquivos de logs, eles valem muito, para isso pegue o programa

" NODEL.C ", feito por mim, na parte de PROGRAMAS.

All right ?! Bem moçada eh isso ae, espero ter ajudado em algo. Thank's !
Compartilhe:
  • Twitter
  • del.icio.us
  • Google Bookmarks
  • email
  • Live
  • Rec6
  • Print
  • StumbleUpon

Comente! Sua participação é importante.