SHOREWALL6-LITE-VA(5)

πŸ“¦
version 5.2.8 Β· 2 versions
  • 5.2.8 Β· debian bookworm, debian trixie, fedora 43, fedora 44, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 5.2.3.4 Β· ubuntu jammy
, in debian bookworm, debian trixie, fedora 43, fedora 44, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– vardir β€” the Shorewall6 Lite file, bestie edition πŸ’–

okay so this is the vardir page from the Shorewall6 Lite manual (section 5, configuration files, iykyk) ✨


🌸 SYNOPSIS 🌸

/etc/shorewall6-lite/vardir

✨ DESCRIPTION ✨

so bestie, here's the tea: this file does not exist by default. it's giving optional. πŸ™ˆ you may create it if you wanna change the directory that Shorewall6 Lite uses to stash its state information β€” and yes, that includes the compiled firewall scripts. iconic.

by default, the directory it uses is:

/var/lib/shorewall6-lite/

the file holds exactly one single variable assignment:

VARDIR=directory

where directory is literally just the name of a directory. no cap.

🫢 important lil heads up: if you add this file, you should copy the files from /var/lib/shorewall6-lite to the new directory before you do a shorewall6-lite restart. don't skip this step bestie, please. 😭

πŸŽ€ Note πŸŽ€

beginning with Shorewall 4.5.2, using this file is deprecated πŸ’€ β€” it's been phased out in favor of specifying VARDIR in the shorewallrc file used during installation of Shorewall Core.

and the way that the variable name stays VARDIR but the meaning is slightly different?? yeah. when it's set in shorewallrc, Shorewall6 Lite will create a directory under the specified path name to hold state information.

Example:

VARDIR=/opt/var/lib/

then the state directory for Shorewall Lite will be:

/opt/var/lib/shorewall6-lite

✨ versus ✨ when VARDIR is set in /etc/shorewall6-lite/vardir, Shorewall Lite will save its state in the directory specified β€” like, directly. no nesting, no extra folder. that's the difference, periodt. πŸ’…


🌈 EXAMPLE 🌈

VARDIR=/root/shorewall6

πŸ¦‹ FILES πŸ¦‹

  • /etc/shorewall6-lite/vardir

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page bestie, you ate that πŸ’– this one's from the Configuration Files manual, dated 09/24/2020, and its proper name is SHOREWALL6-LITE-VA(5) β€” mwah, go forth and configure responsibly 🌸🫢