Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
So that there are no child holes:
apt-get update
apt-get upgrade
and install fail2ban
If you want everything at once and quickly, install the ipkungfu and fail2ban packages:
apt-get install fail2ban ipkungfu
# enable fail2ban
/etc/init.d/fail2ban restart
# configure ipkungfu
sudo nano /etc/ipkungfu/ipkungfu.conf
# change the line IPKFSTART = 0 on IPKFSTART = 1 here:
sudo nano /etc/default/ipkungfu
# turn on
sudo ipkungfu
this will give a good basic level of security, as you learn iptables, edit it optimally for your tasks
To begin with, I advise you to deal with the very principle of operation of iptables (2 chapters can be skipped, 1 - diagonally)
https://www.opennet.ru/docs/RUS/iptables/
Then you can follow the policy:
block everything from the uncontrolled zone (except for the tcp port 80, 443), allow everything from the controlled area (local network).
+ as mentioned above, add all fail2ban
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question