SHOREWALL-VARDIR(5)

πŸ“¦
version 5.2.8 Β· 2 versions
  • 5.2.8 Β· alpine 3.22, alpine 3.23, alpine 3.24, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute (latest)
  • 5.2.3.4 Β· ubuntu jammy
, in alpine 3.22, alpine 3.23, alpine 3.24, debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute

πŸ’– SHOREWALL-VARDIR πŸ’–

okay bestie, so this is SHOREWALL-VARDIR(5) β€” a lil page from the Configuration Files section of the manual. sit down, grab a boba, and let's talk about where Shorewall keeps its stuff πŸŽ€


✨ NAME ✨

vardir β€” it's a Shorewall file, that's the whole vibe πŸ¦‹


✨ SYNOPSIS ✨

/etc/shorewall[6]/vardir

✨ DESCRIPTION ✨

okay so first thing's first: this file does not exist by default. like, it's not there. it's giving "you have to manifest it" ✨

You may create the file if you want to change the directory used by Shorewall to store state information β€” and yes, that includes the compiled firewall scripts, the whole thing 🫢

By default, the directory used is:

  • /var/lib/shorewall/ for IPv4
  • /var/lib/shorewall6/ for IPv6

The file contains a single variable assignment:

VARDIR=directory

where directory is the name of a directory. that's it. one line. main character energy honestly πŸ’…

⚠️ okay so listen: if you add this file, you should copy the files from /var/lib/shorewall to the new directory before performing a shorewall restart. do not skip this step bestie, i'm begging 😭

✨ EXAMPLE ✨

VARDIR=/root/shorewall

look at her go 🧚


✨ FILES ✨

  • /etc/shorewall/vardir
  • /etc/shorewall6/vardir

✨ SEE ALSO ✨


that's the whole page fr fr πŸ’œ it came from the Configuration Files manual, version SHOREWALL-VARDIR(5), dated 09/24/2020 β€” slay, iconic, no notes πŸ‘‘πŸŒˆβ­