Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

some issue in block app in wfp driver

senninsennin Member Posts: 26

I am developing a wfp driver and my issue that happened when i want only one specific app to be connected to a specific IP and port, but as a result all apps can be connected to that port and IP.
which part is wrong?
in FWPM_LAYER_ALE_AUTH_CONNECT_V4 layer i add sublayer

    bFilterCondition[0].fieldKey                = FWPM_CONDITION_ALE_APP_ID;
bFilterCondition[0].matchType               = FWP_MATCH_NOT_EQUAL;
bFilterCondition[0].conditionValue.type     = FWP_BYTE_BLOB_TYPE;
bFilterCondition[0].conditionValue.byteBlob = blob;

bFilterCondition[1].fieldKey                    = FWPM_CONDITION_IP_REMOTE_ADDRESS;
bFilterCondition[1].matchType                   = FWP_MATCH_NOT_EQUAL;
bFilterCondition[1].conditionValue.type         = FWP_V4_ADDR_MASK;
bFilterCondition[1].conditionValue.v4AddrMask   = &v4Address;

bFilterCondition[2].fieldKey                    = FWPM_CONDITION_IP_REMOTE_PORT;
bFilterCondition[2].matchType                   = FWP_MATCH_NOT_EQUAL;
bFilterCondition[2].conditionValue.type         = FWP_UINT16;
bFilterCondition[2].conditionValue.uint16       = serverPort; 
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 12 September 2022 Live, Online
Internals & Software Drivers 23 October 2022 Live, Online
Kernel Debugging 14 November 2022 Live, Online
Developing Minifilters 5 December 2022 Live, Online