You want to create different exception rules on different interfaces on an XP Based operating system programmatically. Is there any API’s
that exists to accomplish this?
You can use the INetSharingPortMapping (http://msdn.microsoft.com/en-us/library/aa365971(VS.85).aspx) and INetSharingPortMappingCollection ( http://msdn.microsoft.com/en-us/library/aa365972(VS.85).aspx ) using the same number for both ports, to open a hole in the firewall on a specific interface. Note: this only applies for XP.