locked
Problem with /32 subnet masks and Connection Security Rules

    General discussion

  • We're utilizing Connection Security Rules to build VPN tunnels between a 2008 R2 host and VPN endpoints. Everything works as expected except /32 subnet masks. If we specify a single IP for either of the endpoints, Windows will send a "0.0.0.0" subnet mask instead of a "255.255.255.255" subnet mask and the tunnel will fail Phase 2 (Quick Mode). I tried specifying both /32 and /255.255.255.255 but neither works (still sends 0.0.0.0). Also, it only fails if I initiate from the server itself - if the remote endpoint initiates, it works fine. Seems like a bug. From event viewer:

    An IPsec quick mode negotiation failed.

    Local Endpoint:
      Network Address: 192.168.1.10
      Network Address mask: 0.0.0.0
      Port: 0
      Tunnel Endpoint: x.x.x.x

    Remote Endpoint:
      Network Address: 128.1.1.1
      Address Mask: 0.0.0.0
      Port: 0
      Tunnel Endpoint: x.x.x.x
      Private Address: 0.0.0.0

    Additional Information:
      Protocol: 0
      Keying Module Name: IKEv1
      Virtual Interface Tunnel ID: 0
      Traffic Selector ID: 0
      Mode: Tunnel
      Role: Initiator
      Quick Mode Filter ID: 82196
      Main Mode SA ID: 28

    Failure Information:
      State: Sent first (SA) payload
      Message ID: 1
      Failure Point: Local computer
      Failure Reason: Error processing Notify payload


    Jeff Graves, ORCS Web, Inc.
    • Changed type Tiger Li Tuesday, June 01, 2010 12:37 AM
    Monday, May 24, 2010 10:45 PM

All replies

  • Hi Jeff Graves - ORCS Web,

     

    For further investigation, Could you please pause your  connection security rules here?

    Please follow the steps below:

                    In “windows firewall with advanced security” MMC snap-in, right click "connection security rules “which located on left tree, right  click “export list…”.

                    Export to an particular file, and pause the list result here, also please tell us your rule ‘s name.

     

    Here are some articles about how to troubleshooting IPsec issue, for you reference :

     

    IPsec Troubleshooting

     

    http://technet.microsoft.com/en-us/library/cc783041(WS.10).aspx

     

    IPsec troubleshooting tools

     

    http://technet.microsoft.com/en-us/library/cc784300(WS.10).aspx

     

    Thanks.

     

    Tiger Li

    Tuesday, June 01, 2010 12:37 AM
  • Here's the rule as requested:

    Name Enabled Endpoint 1 Endpoint 2 Authentication mode Authentication method Endpoint 1 port Endpoint 2 port Protocol Group 
    VPN Tunnel 1 Yes 192.168.1.10 128.1.1.1, 128.1.1.2, 128.1.1.3, 128.1.1.4 Require inbound and outbound Custom Any Any Any  

    From Netsh:

    Rule Name:                            VPN Tunnel 1
    ----------------------------------------------------------------------
    Enabled:                              Yes
    Profiles:                             Domain,Private,Public
    Type:                                 Static
    Mode:                                 Tunnel
    LocalTunnelEndpoint:                  x.x.x.x
    RemoteTunnelEndpoint:                 x.x.x.x
    Endpoint1:                            192.168.1.10/32
    Endpoint2:                            128.1.1.1/32,128.1.1.2/32,128.1.1.3/32,128.1.1.4/32
    Protocol:                             Any
    Action:                               RequireInRequireOut
    Auth1:                                ComputerPSK
    Auth1PSK:                             xxxxxx
    MainModeSecMethods:                   DHGroup2-3DES-MD5,DHGroup2-AES128-MD5
    QuickModeSecMethods:                  ESP:MD5-None+960min+100000kb,AH:MD5+960min+100000kb,ESP:MD5-3DES+960min+100000kb,ESP:MD5-AES128+960min+100000kb
    ExemptIPsecProtectedConnections:      No
    ApplyAuthorization:                   No
    Ok.


    Jeff Graves, ORCS Web, Inc.
    Tuesday, June 01, 2010 1:10 PM