0

Does using netfilter.ip_conntrack in the kernel in anyway help mitigate (d)DoS attacks or does it make it worse?

I know it adds the ability to track connections and such but just curious if it helps or just makes the attacks worse by bogging down connections.

HopelessN00b
  • 53,385
  • 32
  • 133
  • 208
Tiffany Walker
  • 6,541
  • 13
  • 53
  • 77

2 Answers2

1

Depends on your priorities.

It will make it better in the sense of that your machine doesn't die, because once the net.ipv4.netfilter.ip_conntrack_max is reached, the machine will simply stop accepting connections instead of getting overloaded.

It will make it worse in the sense of that your machine stops accepting connections.

On most of my own high traffic servers i have simply unloaded the ip_conntrack kernel module. If you dont use its functionality for something like NAT it's not necessary to have it active.

replay
  • 3,180
  • 13
  • 16
0

Nope, it'll make it worse. Filling up the ip_conntrack table is a relatively easy way to knock a server off line, and attackers know this.

Stephan
  • 999
  • 7
  • 11