> For the complete documentation index, see [llms.txt](https://docs.ironblocks.com/firewall/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ironblocks.com/firewall/configuration/firewall-configuration.md).

# Firewall Configuration

You add and remove policies for your protocol by interacting with the [Firewall](/firewall/smart-contracts/firewall.sol.md) contract.

## Global Policies

Global Policies apply to all of your protocol's transactions, regardless of the method that was triggered.

1. To add a global policy, call the [addGlobalPolicy()](/firewall/smart-contracts/firewall.sol.md#addglobalpolicy) method.
2. To remove a global policy, call the [removeGlobalPolicy()](/firewall/smart-contracts/firewall.sol.md#removeglobalpolicy) method.

## Per-Method Policies

Per-Method Policies apply to specific method on your contract, based on the contract's name and the method's signature hash. These are useful in cases where you want to apply a policy on a select set of methods.

1. To add a per-method policy, call the [addPolicy()](/firewall/smart-contracts/firewall.sol.md#addpolicy) method.
2. To remove a per-method policy, call the [removePolicy()](/firewall/smart-contracts/firewall.sol.md#removepolicy) method.
