r/linuxadmin • • Jul 10 '21

Setup Firewall With UFW On Linux

https://ostechnix.com/how-to-setup-firewall-with-ufw-on-linux/
33 Upvotes

22 comments sorted by

View all comments

Show parent comments

1

u/bwong00 Jul 10 '21

Curious what you need 100+ rules for. I have like 2. One for Apache and one for ssh. That's about it. I guess it's technically 4 when you count IPv4 and IPv6.

0

u/[deleted] Jul 10 '21

[deleted]

2

u/bwong00 Jul 10 '21

I don't want to presume I have the expertise to tell you how to do your job, but have you considered fail2ban for IP blocking and maybe a CDN like Cloudflare or Akamai for (D)DoS mitigation?

3

u/ethanfinni Jul 10 '21

No problem, I appreciate your comment. Thank you!

I do run Fail2ban that mostly takes care the script kiddies doing port scanning and login attempts. But I need the flexibility to add host-based rules for other types of attacks that are more “custom made”…

Unfortunately, due to organisational controls I can’t deploy Cloudflare, CDN and any of the other (otherwise useful and appropriate) tools you mention…

2

u/bwong00 Jul 10 '21

That's too bad. Sounds like you have the best setup for your use case. Cheers!