Method and apparatus for deflecting connection flooding attacks.
Specifically, the stateful firewall allows all connection attempts to
flow into the destination host, but monitors the connection attempts to
ensure that only legitimate connections are allowed. If the firewall
detects that a connection is half-open for longer than a certain timer
threshold, it will instruct the destination host to tear down the
half-open connection, thereby freeing up resources in the destination
host for other connection attempts. The timer threshold can be
dynamically adjusted if a connection flooding attack is detected.