The following set of code examples and procedures show typical uses of the Windows Firewall with Advanced Security API.
Windows Firewall Integration and Best Practices
- General Firewall Rule Authoring Process
- General Firewall Rule Authoring Process
- Windows Firewall Profiles
- Translating the Authored Firewall Policy into API Calls
- Guidelines for Working with Multiple Profiles
- Set-up Processes
- Run-Time Modification
- User Interface Notifications and Display
- Firewall Rules Needed for Common Transports
- Testing the Firewall Rules
- Troubleshooting Firewall-Related Issues
- Frequently Asked Questions
Using the Windows Firewall with Advanced Security COM API and C/C++
- Adding an Application Rule to Allow Dynamic Edge Traversal
- Adding a GRE Rule
- Adding an ICMP Rule
- Adding a LAN Rule
- Adding an Outbound Rule
- Adding a Per Interface Rule
- Adding a Service Rule
- Disabling a Firewall Per Interface
- Disabling Windows Firewall
- Enabling a Group
- Enumerating Firewall Rules
- Getting Firewall Settings
- Registering with Windows Firewall And Taking Ownership of Firewall Policy Management
- Registering with Windows Firewall Without Taking Ownership of Firewall Policy Management
- Restricting Service
- Working with Multiple Profiles
Using the Windows Firewall with Advanced Security scripting API and VBScript
- Adding a LAN Rule
- Adding a Per Interface Rule
- Adding a Protocol Rule
- Adding a Rule with Edge Traversal
- Adding a Service Rule
- Adding an ICMP Rule
- Adding an Application Rule
- Adding an Outbound Rule
- Checking if a Rule is Enabled
- Disabling the Firewall per Interface
- Enabling Rule Groups
- Enumerating Firewall Rules
- Enumerating Firewall Rules with a Matching Group String
- Restricting Service
- Retrieving Firewall Settings
- Turning the Firewall Off