How to combat DoS attacks without any firewall in Windows?
As you all might know, DoS is typically a kind of attack where the attacker repeatedly send SYN packets to you. When you have a Firewall or IPS you can be sure of protection. Without a Firewall, you can still enable protection and I will be speaking more about this in this post.
You should have heard about the TCP/IP service in Windows. By making a change in TCP/IP service we are going to enable DoS protection.
-
Run regedit.exe
- Navigate to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters registry subkey.
- From the Edit menu, select New, DWORD Value.
- Enter the name TcpMaxHalfOpen, then press Enter.
- Double-click the new value, set it to 100, then click OK.
- Enter the name TcpMaxHalfOpenRetried, then press Enter.
- Double-click the new value, set it to 80, then click OK.
- Enter the name SynAttackProtect, then press Enter.
- Double-click the new value, set it to 1, then click OK.
- Reboot the machine.
When SynAttackProtect value is 0, it offers no protection. Value 1 indicate to delay the response Notification untill three way handshake is complete by the received by the SYN packet. By default, this is not invoke untill it exceeds the TcpMaxHalfOpen and TcpMaxHalfOpenRetried values. The values TcpMaxHalfOpen and TcpMaxHalfOpenRetried could be changed, and I strongly recommend to test with different settings in your environment, then choose the best ones.
Comments
Hi, Could you
Hi,
Could you please exactly explain, what does adding these registry entires do?
"Value 1 indicate to delay the response Notification untill three way handshake is complete by the received by the SYN packet. By default, this is not invoke untill it exceeds the TcpMaxHalfOpen and TcpMaxHalfOpenRetried values"
I can understand that, setting the value 1 for SYN packet means that you are protected. But then, need to know, how does it affect what values are set for TcpMaxHalfOpen and TcpMaxHalfOpenRetried?
Exoplanation is greatly appreciated...
Also looks like these are the windows operating system settings. Even if you do not have SEP will it still prevent Dos attack?????
-VKalani
Hey Vishal , what does
Hey Vishal , what does Exoplanation means .
Good job Prashant
Good job Prashant
Could you detail a little how this will work?
Could you detail a little how this will work? if we can protect DoS with a such a simple change, why not Microsoft will make it in the ssytem default setting?
Thanks
You could refer another
You could refer another article that explains this in detail,
https://www-secure.symantec.com/connect/articles/h...
I am sorry, I don't have an answer for your second question - Why Microsoft din't make it default setting
Prashant Bharadwaj, CEH, MCTS Windows Server 2008 Active Directory, Configuration, SCS Symantec Endpoint Protection 11.0
Very Informative Prashant
Very Informative Prashant,Excellent work.
Would like to see more articles from you
Vishal, To understand how
Vishal,
To understand how TcpMaxHalfOpen and TcpMaxHalfOpenRetried affects the DoS protection is beyond the scope of my article. Anybody who understands DoS will understand this term as it is self-explanatory. And yes, SEP is not required to turn on this feature.
Prashant Bharadwaj, CEH, MCTS Windows Server 2008 Active Directory, Configuration, SCS Symantec Endpoint Protection 11.0
Hi
Pls refer
http://technet.microsoft.com/en-us/library/cc722931.aspx
If this Info helps to resolve the issue please Mark as Solution
Thanks
Would you like to reply?
Login or Register to post your comment.