---
title: "Get all of the firewall config"
method: GET
path: "/config/firewall/all"
---

# Get all of the firewall config

`GET /config/firewall/all`

Get all of the firewall configuration.

## Response `200`

OK

- object
  - `fwAttr` FirewallEntry[]
    - `ruleArguments` FirewallRuleEntry, required
      - `sourceIP` string — Source IP in CIDR notation
      - `destinationIP` string — Destination IP in CIDR notation
      - `minSourcePort` integer — Minimum source port range
      - `maxSourcePort` integer — Maximum source port range
      - `minDestinationPort` integer — Minimum destination port range
      - `maxDestinationPort` integer — Maximum destination port range
      - `protocol` integer — the protocol
      - `portName` string — the incoming port
      - `preference` integer — User preference for ordering
    - `opts` FirewallOptionEntry, required
      - `drop` boolean — Drop any matching rule
      - `trap` boolean — Trap anything matching rule
      - `redirect` boolean — Redirect any matching rule
      - `allow` boolean — Allow any matching rule
      - `record` boolean — Record or dump for matching rule
      - `redirectPortName` string — Redirect any matching rule
      - `fwMark` integer — Set a fwmark for any matching rule
      - `doSnat` boolean — Do SNAT on matching rule
      - `toIP` string — Modify to given IP in CIDR notation
      - `toPort` integer — Modify to given Port (Zero if port is not to be modified)
      - `onDefault` boolean — Trigger only on default cases
      - `counter` string — traffic counters

## Other responses

- `401` — Invalid authentication credentials
- `500` — Internal service error
- `503` — Maintenance mode

---

[API](https://skmtc.net/loxilb-io/apis/loxilb-rest-api.md) · [All operations](https://skmtc.net/loxilb-io/apis/loxilb-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loxilb-io/loxilb-rest-api/revisions/45e9f0a95af0/schema)
