Linux Netfilter discussions
 help / color / mirror / Atom feed
* Iptables and DDoS attacks
@ 2023-08-10  7:16 Hack3rcon
  2023-08-10  9:22 ` Reindl Harald
  0 siblings, 1 reply; 5+ messages in thread
From: Hack3rcon @ 2023-08-10  7:16 UTC (permalink / raw)
  To: netfilter

Hello iptables Team,
Is it possible to protect a server against DDoS attacks using iptables?

Thank you.




^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Iptables and DDoS attacks
@ 2023-08-13 21:07 Joshua Moore
  0 siblings, 0 replies; 5+ messages in thread
From: Joshua Moore @ 2023-08-13 21:07 UTC (permalink / raw)
  To: Hack3rcon; +Cc: Reindl Harald, netfilter

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8-sig", Size: 1562 bytes --]

For volumetric attacks (bandwidth), hardware routers/firewalls export flow analytics to a flow analyzer which then in turn has detection logic which triggers scripts. One example is triggering a script for a remotely triggered black hole (RTBH) which signals to upstream ISPs to drop traffic to the destination /32 host that is attacked. Other mitigation mechanisms include triggering traffic to be redirected to a scrubbing server to consume the attack and “scrub” the traffic clean and to redirect traffic to a low bandwidth “garbage” ISP connection intended to drop the attack at the edge.

In all cases, you cannot stop the attacks with simple iptables/nftable rules because they by nature need to drop packets AFTER they hit the wire which is too late.

The *right* solution for you would all depend on your network and goals. Happy to discuss more if you want to ping my company email directly as we implement this kind of thing regularly: jmoore@archous.tech

> On Aug 13, 2023, at 4:23 PM, Hack3rcon@mail2tor.com wrote:
> 
> 
>>> Am 10.08.23 um 09:16 schrieb Hack3rcon@mail2tor.com:
>>> Hello iptables Team,
>>> Is it possible to protect a server against DDoS attacks using iptables?
>> depends on the attack - if it's bandwith *nothing* on your side can do
>> anything against it
>> for request-based attacks xt_recent for ratelimits works well
> 
> Hello,
> Thank you so much for your reply.
> How do hardware firewalls that use Linux prevent these attacks?
> 
> Can you show me some iptables rules about limitation?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-13 21:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10  7:16 Iptables and DDoS attacks Hack3rcon
2023-08-10  9:22 ` Reindl Harald
2023-08-13 19:34   ` Hack3rcon
2023-08-13 21:41     ` imnozi
  -- strict thread matches above, loose matches on Subject: below --
2023-08-13 21:07 Joshua Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox