Skip to content

Part 2 - Firewall Configuration Guide

This guide will walk you through the process of creating and configuring a firewall in the Defnese API Dashboard.


Prerequisites


Step 1: Add a Provider

  1. The first thing you have to do is to register a provider.
  2. Therefore, navigate to the providers section by clicking "Providers" in the left sidebar or by following this link.
  3. Fill in the required fields for the provider:
  4. Name: Enter a unique name for the provider (e.g., "my-openrouter-1").
  5. Type: Choose the provider type (e.g., "OpenAI", "mistral").
  6. Base URL: Add the base URL of the provider.
  7. API Key: Enter the API key for authentication.
  8. Click "Save" to add the provider.

Step 2: Create a New Firewall

  1. Go back to the "Firewalls" section firewalls.
  2. Click the "Add Firewall" button.
  3. Fill in the firewall details:
  4. Name: Give your firewall a descriptive name.
  5. Protection: Activate certain defense mechanisms for this Firewall (e.g., system prompt checking, tool call securing)
  6. Click "Save" to create the firewall.
  7. Assign a Provider: Select the provider you added in Step 1.

Step 3: Test the Firewall

  1. Once the firewall is created, locate your newly created firewall card.
  2. Click the "+" (plus) icon on the firewall card to generate a cURL snippet.
  3. Copy the generated cURL command and fill in the required parameters.
  4. Run it in your terminal to test the firewall.
  5. Try different requests to verify your activated defenses.

Troubleshooting

  • Connection Issues? Double-check the provider's base URL and API key.
  • Rules Not Applying? Ensure the firewall rules are correctly configured and saved.
  • Need Help? Contact support for further assistance.

Next Steps

  • Monitor the firewall's performance in the Defense API Dashboard.
  • Adjust rules as needed for your security requirements.