Skip to content

Setting for high load and prevent DDoS (sysctl, iptables, crowdsec or other)

Security
4 2 1.6k 1
  • Hello,

    I am looking for ways to make the weavers that we top the world a little more secure via web servers etcโ€ฆ

    I saw this article which allows to best configure the kernel:

    https://www.thegeekdiary.com/sysctl-setting-for-high-load-and-prevent-ddos/

    Do you think this config is valid @phenomlab or would you have others to offer?


    I know Iptables can be a good tool too. I saw this article about it (but ideally for centOS, maybe itโ€™s good for ubuntu server ?):

    https://javapipe.com/blog/iptables-ddos-protection/


    Using Virtualmin, if you have tricks for firewallD (installed by default), Iโ€™m interested.

    Besides, FirewallD is based on its own app or on Iptables or something else like ufw?

    I would be curious to know because I use it to open certain ports.

    In short, a topic to list all the tips for securing a server and in this case a server without of course disturbing users accessing the web server and in this case, for me it is nodebb

    cya

  • Hello,

    I am looking for ways to make the weavers that we top the world a little more secure via web servers etcโ€ฆ

    I saw this article which allows to best configure the kernel:

    https://www.thegeekdiary.com/sysctl-setting-for-high-load-and-prevent-ddos/

    Do you think this config is valid @phenomlab or would you have others to offer?


    I know Iptables can be a good tool too. I saw this article about it (but ideally for centOS, maybe itโ€™s good for ubuntu server ?):

    https://javapipe.com/blog/iptables-ddos-protection/


    Using Virtualmin, if you have tricks for firewallD (installed by default), Iโ€™m interested.

    Besides, FirewallD is based on its own app or on Iptables or something else like ufw?

    I would be curious to know because I use it to open certain ports.

    In short, a topic to list all the tips for securing a server and in this case a server without of course disturbing users accessing the web server and in this case, for me it is nodebb

    cya

    @DownPW Iโ€™d steer well clear of modifying any kernel as detailed in the first post. There is so much that can go wrong here, itโ€™ll take me a day to list all the possibilities. Whilst thereโ€™s nothing โ€œwrongโ€ with what is being suggested, it will affect the entire kernel and could present you with more issues than you set out to resolve.

    You have to remember that what works for one person wonโ€™t work for another because every environment is different.

    Thereโ€™s also nothing fundamentally wrong with FirewallD either - itโ€™s functional - albeit a bit basic, but it does the job very well and is simple to use. Iโ€™m curious to understand why you arenโ€™t considering the Hetzner firewall as the first post as this makes much more sense to me in terms of handling DDoS traffic.

  • Ha why not.
    Because I just didnโ€™t think of it lolol

    I know hetzner has DDOS protection which works well unlike some provides.

    It is active on my server but apart from 2 or 3 basic rules (SSH port, nodebb;) I donโ€™t really see what to do with it

    in short if you have any advice to give to secure the best.

  • Ha why not.
    Because I just didnโ€™t think of it lolol

    I know hetzner has DDOS protection which works well unlike some provides.

    It is active on my server but apart from 2 or 3 basic rules (SSH port, nodebb;) I donโ€™t really see what to do with it

    in short if you have any advice to give to secure the best.

    @DownPW ๐Ÿ™‚ most of this really depends on your desired security model. In all cases with firewalls, less is always more, although itโ€™s never as clear cut as that, and there are always bespoke ports youโ€™ll need to open periodically.

    Heztnerโ€™s DDoS protection is superior, and I know they have invested a lot of time, effort, and money into making it extremely effective. However, if you consider that the largest ever DDoS attack hit Cloudflare at 71m rps (and they were able to deflect it), and each attack can last anywhere between 8-24 hours which really depends on how determined the attacker(s) is/are, you can never be fully prepared - nor can you trace itโ€™s true origin.

    DDoS attacks by their nature (Distributed Denial of Service) are conducted by large numbers of devices whom have become part of a โ€œbot armyโ€ - and in most cases, the owners of these devices are blissfully unaware that they have been attacked and are under command and control from a nefarious resource. Given that the attacks originate from multiple sources, this allows the real attacker to observe from a distance whilst concealing their own identity and origin in the process.

    If you consider the desired effect of DDoS, it is not an attempt to access ports that are typically closed, but to flood (and eventually overwhelm) the target (such as a website) with millions of requests per second in an attempt to force it offline. Victims of DDoS attacks are often financial services for example, with either extortion or financial gain being the primary objective - in other words, pay for the originator to stop the attack.

    Itโ€™s even possible to get DDoS as a service these days - with a credit card, a few clicks of a mouse and a target IP, you can have your own proxy campaign running in minutes which typically involves โ€œbootersโ€ or โ€œstressersโ€ - see below for more

    https://heimdalsecurity.com/blog/ddos-as-a-service-attacks-what-are-they-and-how-do-they-work

    @DownPW said in Setting for high load and prevent DDoS (sysctl, iptables, crowdsec or other):

    in short if you have any advice to give to secure the best.

    Itโ€™s not just about DDos or firewalls. There are a number of vulnerabilities on all systems that if not patched, will expose that same system to exploit. One of my favourite online testers which does a lot more than most basic ones is below

    https://www.immuniweb.com/websec/

    Iโ€™d start with the findings reported here and use that to branch outwards.

  • phenomlabundefined phenomlab marked this topic as a regular topic on

Related Topics
  • Ex GCHQ employee risk to national security

    Discussion gchq security
    4
    1 Votes
    4 Posts
    763 Views
    @phenomlab said in Ex GCHQ employee risk to national security: I canโ€™t believe also that security is so lax that someone without adequate clearance can waltz into a restricted area and take what they want. Yeah I canโ€™t believe that either. It is crazy
  • Adjusting HSTS settings for public wifi's

    Solved Security hsts cloudflare ssl
    4
    1
    2 Votes
    4 Posts
    1k Views
    @Hari Ok, no issues. Keep me postedโ€ฆ
  • how to prevent DDoS attacks ?

    Solved Vulnerability ddos nodebb
    34
    17 Votes
    34 Posts
    7k Views
    @phenomlab thank you very much, this was helpful. Everything looks ok
  • 4 Votes
    4 Posts
    1k Views
    @phenomlab said in TikTok fined ยฃ12.7m for misusing childrenโ€™s data: Just another reason not to use TikTok. Zero privacy, Zero respect for privacy, and Zero controls in place. https://news.sky.com/story/tiktok-fined-12-7m-for-data-protection-breaches-12849702 The quote from this article says it all TikTok should have known better. TikTok should have done better They should have, but didnโ€™t. Clearly the same distinct lack of core values as Facebook. Profit first, privacyโ€ฆ well, maybe. Wow, thatโ€™s crazy! so glad I stayed away from it, rotten to the core.
  • 4 Votes
    3 Posts
    2k Views
    @phenomlab No they have a free and pro console instance. We can see alert with IP, Source AS, scenario attack etcโ€ฆ Installation on the NODEBB server without problems. Very good tools [image: 1668812242411-cf7e5a89-84f4-435b-82eb-434c0bfc895e-image.png] [image: 1668811810555-cc82a10e-a1f1-4fd8-a433-7c9b2d31f254-image.png] [image: 1668811841819-1b7147b0-37c6-4d87-b4f1-a0fe92e74afd-image.png] [image: 1668811924623-7c21fc10-1825-48e1-a993-92b84455f074-image.png] โ€“ We can also do research on IPs via the crowdsec analyzer I believe itโ€™s 500 per month in the Free version [image: 1668812069082-43bc8265-a57c-4439-829c-0bb8602d99b4-image.png]
  • 0 Votes
    1 Posts
    684 Views
    No one has replied
  • 0 Votes
    3 Posts
    1k Views
    @justoverclock yes, completely understand that. Itโ€™s a haven for criminal gangs and literally everything is on the table. Drugs, weapons, money laundering, cyber attacks for rent, and even murder for hire. Nothing it seems is off limits. The dark web is truly a place where the only limitation is the amount you are prepared to spend.
  • is my DMARC configured correctly?

    Solved Configure
    3
    2
    3 Votes
    3 Posts
    1k Views
    @phenomlab said in is my DMARC configured correctly?: youโ€™ll get one from every domain that receives email from yours. Today I have received another mail from outlook DMARC, i was referring to your reply again and found it very helpful/informative. thanks again. I wish sudonix 100 more great years ahead!