Jump to content
sleed

Cum sa instalezi Firewall pe Serverul tau [Debian]

Recommended Posts

Va salut.In acest tutorial , va v-oi spune cum sa instalezi un firewall , bun , pe serverul tau , varianta debian.

1.Sa te asiguri ca ai toate privilegiile pe tine [sudo su]

2.Downloadezi fisierul cu urmatoarea comanda,in consola : wget http://www.configserver.com/free/csf.tgz

3.Urmeaza sa i dai decompress : tar -xzf csf.tgz .Inainte de urmatoarea comanda , sa te asiguri ca nu ai alte firewall-uri instalate.][Desi putin probabil.]

4.Tastezi in consola : cd csv

, apoi

sh install.sh

5.Apoi tastezi urmatoarea comanda : perl /usr/local/csf/bin/csftest.pl . Daca nu ti-a dat dump , inseamna ca totul merge bine pana acuma.

6.Pentru fisierul de configuratie intri aici : nano /etc/csf/csf.conf , modifici ce parametrii vrei tu :

View image: Screenshot from 2014 01 23 20 00 48

View image: Screenshot from 2014 01 23 19 59 55

Are si modul block ip : Scrii in consola

nano /etc/csf/csf.deny

Modul Allow ip :

nano /etc/csf/csf.allow

Din nou comanda csf -r

Apoi selectezi ce porturi vrei tu , ce flags[country] sa fie available , ai si modul pentru FLOOD:

Cauti liniile respective :

Connlimit : 22;5;443;20

PortFlood: 22;tcp;5;250

Adaugi ce scrie aici , exit , csf -r

Apoi adaugi alta consola , scrii : nano /etc/csf/csf.conf , cauti linia TESTING , si o pui la 0 , apoi save , exit , din nou comanda csf -r , si DONe

Sursa: Ma ajutat si un prieten , plus stiam si eu firewallu asta + SITE Oficiall

+ LINK Descarcare Preventiv: Link Descarcare

Va multumesc :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...