---
name: "shorewall-routes"
section: "5"
platform: "linux"
package: "shorewall"
version: "5.2.8-6"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/shorewall-routes"
---

# shorewall-routes(5)

Shorewall file

## NAME

routes - Shorewall file

## SYNOPSIS

**/etc/shorewall\[6\]/routes**

## DESCRIPTION

This file was added in Shorewall 4.4.15 and is used to define routes to be added to provider routing tables.

The columns in the file are as follows.

**PROVIDER**

The name or number of a provider defined in **shorewall-providers**\[1\] (5). Beginning with Shorewall 4.5.14, you may also enter **main** in this column to add routes to the main routing table.

**DEST**

Destination host address or network address.

**GATEWAY** (Optional)

If specified, gives the IP address of the gateway to the DEST.

Beginning with Shorewall 4.5.14, you may specify **blackhole** in this column to create a blackhole route.

Beginning with Shorewall 4.5.15, you may specify **prohibit** or **unreachable** in this column to create a prohibit or unreachable route respectively.

**DEVICE** (Optional)

Specifies the device route. If neither DEVICE nor GATEWAY is given, then the INTERFACE specified for the PROVIDER in **shorewall-providers**\[1\] (5). This column must be omitted if **blackhole**, **prohibit** or **unreachable** is specified in the GATEWAY column.

**OPTIONS** (Optional)

Added in Shorewall 5.0.2.

Allowed options are:

**persistent**

If specified, the route remains in the provider's routing table even when the provider is disabled.

## FILES

/etc/shorewall/routes

/etc/shorewall6/routes

## SEE ALSO

**https://shorewall.org/configuration\_file\_basics.htm#Pairs**\[2\]

[shorewall(8)](/shorewall/8.md)

## NOTES

- 1\.

  shorewall-providers

  https://shorewall.org/manpages/shorewall-providers.html

- 2\.

  https://shorewall.org/configuration\_file\_basics.htm#Pairs

  https://shorewall.org/configuration\_file\_basics.htm#Pairs
