Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

How to combat DoS attacks without any firewall in Windows?

Updated: 04 Nov 2010 | 8 comments
Prashant Bharadwaj's picture
+2 2 Votes
Login to vote

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.

  1. Run regedit.exe

  2. Navigate to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters registry subkey.
  3. From the Edit menu, select New, DWORD Value.
  4. Enter the name TcpMaxHalfOpen, then press Enter.
  5. Double-click the new value, set it to 100, then click OK.
  6. Enter the name TcpMaxHalfOpenRetried, then press Enter.
  7. Double-click the new value, set it to 80, then click OK.
  8. Enter the name SynAttackProtect, then press Enter.
  9. Double-click the new value, set it to 1, then click OK.
  10. 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

VKalani's picture
20
Aug
2010
3 Votes -1
Login to vote

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

TechSm@rT's picture
21
Aug
2010
2 Votes 0
Login to vote

Hey Vishal , what does

Hey Vishal , what does Exoplanation means .

TechSm@rT's picture
21
Aug
2010
0 Votes 0
Login to vote

Good job Prashant

Good job Prashant

mssym's picture
21
Aug
2010
1 Vote +1
Login to vote

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

Prashant Bharadwaj's picture
29
Aug
2010
0 Votes 0
Login to vote

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

John Thomson's picture
29
Aug
2010
0 Votes 0
Login to vote

Very Informative Prashant

Very Informative Prashant,Excellent work.

Would like to see more articles from you

Prashant Bharadwaj's picture
29
Aug
2010
0 Votes 0
Login to vote

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

Mahesh Roja's picture
29
Aug
2010
0 Votes 0
Login to vote

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