Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello.
I know Linux firewalls can detect most of services automatically and add properly rules about them. For example, when you install a web server then a rule about open the port 80 added, but these kind of firewalls can be enough for protect a web server? Can they block some tools like Nmap or MSF?
Can Linux firewalls like SuSEfirewall2, Firewall-cmd and UFW detect scanners and inform system administrator? For example, write in a log file, "Nmap" detected.
The task of a firewall is to block some traffic and let specific traffic through. But there is no law that limits tools to do only that. There might be firewall tools that are self-learning (e.g. the one in Windows) and add IDS functionality. It seems to me that firewalld concentrates on the firewall task. I think ufw, which stands for “uncomplicated firewall”, and SUSEfirewall2 do as well.
Car analogy: It’s the task of a car to bring you from A to B, but some cars have an entertainment system, internet and a kitchen.
Last edited by berndbausch; 12-21-2018 at 03:38 AM.
Hello.
I know Linux firewalls can detect most of services automatically and add properly rules about them. For example, when you install a web server then a rule about open the port 80 added, but these kind of firewalls can be enough for protect a web server? Can they block some tools like Nmap or MSF?
Can Linux firewalls like SuSEfirewall2, Firewall-cmd and UFW detect scanners and inform system administrator? For example, write in a log file, "Nmap" detected.
Thank you.
If you set firewalld or SuSEfirewall2 to allow port 80/443, it will allow from any IPs for those ports, then you have to create rules for any additional things (nmap etc) to block. Perhaps only limit traffic from certain subnets, and block everything else (if that meets your requirements).
The task of a firewall is to block some traffic and let specific traffic through. But there is no law that limits tools to do only that. There might be firewall tools that are self-learning (e.g. the one in Windows) and add IDS functionality. It seems to me that firewalld concentrates on the firewall task. I think ufw, which stands for “uncomplicated firewall”, and SUSEfirewall2 do as well.
Car analogy: It’s the task of a car to bring you from A to B, but some cars have an entertainment system, internet and a kitchen.
Can these kind of firewalls block DDoS attack? Or a hardware firewall needed?
There is no "silver-bullet" when it comes to DDoS. For SSH and Apache, I have used fail2ban.
I came across this while I was looking for something similar, thought to share here: https://www.configserver.com/cp/csf.html
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.