• Upgrade your Internet Experience
  • Sign in
  • Microsoft.com
  • United States (English)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)Россия (Русский)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)香港特别行政區 (中文)
 
 
Windows Server TechCenter
 
 
Home
 
 
2008
 
 
2003
 
 
2000
 
 
Library
 
 
Forums
 
 
 
Windows Server TechCenter > Windows Server Forums > Security > Firewall. EventId 5152 and 5157.
Ask a questionAsk a question
Search Forums:
  • Search Security Forum Search Security Forum
  • Search All Windows Server Forums Search All Windows Server Forums
  • Search All Microsoft TechNet Forums Search All Microsoft TechNet Forums
 

AnswerFirewall. EventId 5152 and 5157.

  • Tuesday, April 01, 2008 4:09 AMAlexey Zhuravlev - G14MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    In my security eventlog event with ID 5157 (The Windows Filtering Platform has blocked a connection) is always followed by event with id 5152 (The Windows Filtering Platform blocked a packet). What a difference between this events? Can I safely ignore the 5157 events when I design OpsMgr ACS reports?

    • ReplyReply
    • QuoteQuote
     

Answers

  • Tuesday, April 08, 2008 5:31 AMMiles Li – MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Vote As Helpful
    0

     

    Hi,

     

    It is not so accurate in my last post.

     

    "Event 5157 indicates that a connection (Transport layer) is blocked while Event 5152 indicates that a packet (IP layer) is blocked."

     

    The meaning of the word 'connection' in Event 5157 is not the same as the connection in OSI model transport layer.

     

    There are three kinds of flows that are defined as CONNECTION:

     

    TCP ALE Flow

    UDP ALE Flow (Protocols that are not TCP or ICMP are treated like UDP.)

    ICMP ALE Flow

     

    As UDP and ICMP are not connection-oriented protocols, the request and echo flows are defined as pseudo-connections here. In this case, WFP is dropping an ICMP packet and blocking a pseudo-connection (a request and echo flow) at the same time.

     

    So, this should be expected.

     

    For more information about ALE Filtering:

     

    Application Layer Enforcement (ALE) Stateful Filtering

    http://msdn2.microsoft.com/en-us/library/bb613463(VS.85).aspx

     

    Hope it helps.

    • ReplyReply
    • QuoteQuote
     

All Replies

  • Wednesday, April 02, 2008 8:45 AMMiles Li – MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Hi,

     

    ID       Message

    5152   The Windows Filtering Platform blocked a packet. 

    5157   The Windows Filtering Platform has blocked a connection. 

     

    Event 5157 indicates that a connection (Transport layer) is blocked while Event 5152 indicates that a packet (IP layer) is blocked.

     

    It is expected that system first logs the event of blocking a connection then the event of blocking a packet when a connection is restricted by a block rule.

     

    For Event 5157 and  Event 5152 are general Windows Firewall security audit, you should look into the event detail of the blocked connection attempt to decide whether that attempt should be allowed. If the connection attempt is malicious or not necessary in your environment, you can safely ignore it.

     

    Please try to check the detail to indentify the connection:

     

    ------------

    The Windows Filtering Platform has blocked a connection.

    Application Information:
     Process ID:  PID

     Application Name: process_name

    Network Information:
     Direction:  outbound or inbound
     Source Address:  source_ip

     Source Port:  
     Destination Address: des_ip

     Destination Port:  
     Protocol:  

    ------------

     

    By the way, just for your information, if you want to disable the security audit from the Windows Firewall, run 'auditpol.exe /set /SubCategory:"MPSSVC rule-level Policy Change","Filtering Platform policy change","IPsec Main Mode","IPsec Quick Mode","IPsec Extended Mode","IPsec Driver","Other System Events","Filtering Platform Packet Drop","Filtering Platform Connection" /successBig Smileisable /failureBig Smileisable' in the command prompt.

     

     

    More information about Windows Firewall feature in Windows Server 2008

    http://technet2.microsoft.com/windowsserver2008/en/library/c042b3c5-dee1-4a31-ac35-e90e846290441033.mspx

     

    Hope it helps.

     

    • ReplyReply
    • QuoteQuote
     
  • Wednesday, April 02, 2008 12:53 PMAlexey Zhuravlev - G14MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vote As Helpful
    0

    Thank you Miles.

    Please try to check the detail to indentify the connection
      

    Of course I did. I can't understand this:

    First (and most important):

    In the "Protocol:" field of event I see UDP or ICMP protocol numbers. In both (5152 and 5157) events. ICMP can establish a connection?

    Second:

    Can you block a connection and dont drop a corresponding packets? Can you drop a packets and dont break a corresponding connection? Why we need 2 different events?

     

    • ReplyReply
    • QuoteQuote
     
Need Help with Forums? (FAQ)
 
© 2009 Microsoft Corporation. All rights reserved.
Manage Your Profile
|
Contact Us
|
Newsletter
|
Terms of Use
|
Trademarks
|
Privacy Statement