SHOREWALL-ROUTES(5)
β¨ SHOREWALL-ROUTES β¨ (that's section 5 of the manual, bestie β a config file page π)
πΈ NAME πΈ
routes β a Shorewall file, and honestly? it's the one that tells your packets where to go πΊοΈβ¨
π SYNOPSIS π
/etc/shorewall[6]/routes
π¦ DESCRIPTION π¦
Okay so this file is kinda new-ish β it showed up in Shorewall 4.4.15 β and what it does is define routes that get added to provider routing tables. That's it, that's the job. π
The columns in the file go like this, in order, no skipping:
π PROVIDER
The name or the number of a provider that you defined over in shorewall-providers(5). And starting with Shorewall 4.5.14, you can also just put main in this column to add routes to the main routing table. main character routing table energy, honestly. π
π DEST
The destination host address or network address. Where the packets are headed, periodt. π―
πͺ GATEWAY (Optional)
If you fill this in, it gives the IP address of the gateway to the DEST.
And now for the glow-up timeline:
- Starting with Shorewall 4.5.14, you may put
blackholein this column to create a blackhole route. π³οΈ - Starting with Shorewall 4.5.15, you may put
prohibitorunreachablein this column to create a prohibit route or an 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(5).
π¨ Careful bestie β this column must be omitted if you putblackhole,prohibitorunreachablein theGATEWAYcolumn. Don't do both, it's not the vibe.
βοΈ OPTIONS (Optional)
Added in Shorewall 5.0.2. The allowed options are:
persistentβ if you specify this, the route stays in the provider's routing table even when the provider is disabled. It's giving loyal. π«Ά
π FILES π
/etc/shorewall/routes/etc/shorewall6/routes
π SEE ALSO π
π NOTES π
shorewall-providershttps://shorewall.org/manpages/shorewall-providers.htmlhttps://shorewall.org/configuration_file_basics.htm#Pairshttps://shorewall.org/configuration_file_basics.htm#Pairs
And that's the whole page, no cap. This was the Configuration Files manual, SHOREWALL-ROUTES(5), dated 09/24/2020 β go configure your routes and slay, bestie πβ¨π
π¦ where this page comes from
- alpine 3.22: shorewall-doc 5.2.8-r1 Β· GPL-2.0-or-later
- alpine 3.23: shorewall-doc 5.2.8-r1 Β· GPL-2.0-or-later
- alpine 3.24: shorewall-doc 5.2.8-r1 Β· GPL-2.0-or-later
- debian bookworm: shorewall 5.2.8-2 Β· GPL-2.0-or-later
- debian trixie: shorewall 5.2.8-6 Β· GPL-2.0-or-later
- fedora 43: shorewall 5.2.8-17.fc43 Β· GPL-2.0-or-later
- fedora 44: shorewall 5.2.8-18.fc44 Β· GPL-2.0-or-later
- nixos 26.05: shorewall 5.2.8
- nixpkgs unstable: shorewall 5.2.8
- ubuntu noble: shorewall 5.2.8-5 Β· GPL-2.0-or-later
- ubuntu questing: shorewall 5.2.8-6
- ubuntu resolute: shorewall 5.2.8-6build1 Β· GPL-2.0-or-later
- ubuntu stonking: shorewall 5.2.8-6build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms