Hi,
I'd like to thank you for all your help so far with the WFP, I just finished all the Windows8 code and the product now works with Windows8, your help was instrumental in making it work :)
I'd like to use the same method on Win7 as well (instead of the packet method I currently use), the question is how can the WFP know the source port/IP after redirection because the proxy will need to query the WFP and get the original destination IP/Port,
and it will use the tuple of Source IP/Port, proxy destination IP/Port.
Thanks,
Barak
解决方案You can look at the metadata FWPS_METADATA_FIELD_ORIGINAL_DESTINATION. You can also get further history by walking the FWPS_CONNECT_REQUEST's previous member.
Hope this helps,