SHOREWALL-LITE-VAR(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

πŸ’– SHOREWALL-LITE-VAR β€” the vardir glow-up guide πŸ’–

okay bestie, welcome to shorewall-lite-var(5), the section-5 config-files page that tells you where Shorewall Lite keeps all its stuff. it's short, it's sweet, and it's lowkey deprecated, but we're gonna read it together anyway because knowledge is the vibe. ✨


🌸 NAME 🌸

vardir β€” the Shorewall Lite file, aka the little file that decides where your state lives 🏠


πŸŽ€ SYNOPSIS πŸŽ€

/etc/shorewall-lite/vardir

that's it. that's the whole path. iconic behavior honestly.


✨ DESCRIPTION ✨

so here's the tea β˜•: this file does not exist by default. it's not just sitting there waiting for you. nope. you have to create it yourself, and you only do that if you want to change the directory that Shorewall Lite uses to store its state information β€” and yes, that includes the compiled firewall scripts. the whole brain of the operation. πŸ§ πŸ’…

the default directory it uses is /var/lib/shorewall-lite/. that's where everything goes unless you say otherwise.

inside the file, you put exactly one thing β€” a single variable assignment:

VARDIR=directory

where directory is the name of a directory. that's the whole assignment, bestie, one line, no drama.

⚠️ important: if you do add this file, you should copy the files from /var/lib/shorewall-lite over to your new directory before you perform a shorewall-lite restart. don't skip that step. it's giving "I forgot to move my stuff and now nothing works" and we are NOT doing that. 😭

Note β€” starting with Shorewall 4.5.2, using this file is deprecated in favor of specifying VARDIR in the shorewallrc file that gets used during installation of Shorewall Core. so like… this file still works, but the cool kids are doing it the other way now. πŸ™ˆ and here's the sneaky part: even though the variable name stays VARDIR, the meaning is slightly different. when you set it in shorewallrc, Shorewall Lite will create a directory under the specified path name to hold its state information. so it's a parent path, not the destination itself. iykyk. πŸ¦‹ example time: text VARDIR=/opt/var/lib/ and with that, the state directory for Shorewall Lite will be /opt/var/lib/shorewall-lite/. see how it appended the shorewall-lite part? yeah. that's the difference. ✨ meanwhile, when VARDIR is set in /etc/shorewall-lite/vardir, Shorewall Lite will save its state in the directory specified β€” as in, exactly the one you typed, no bonus subdirectory. 🎯

πŸ“ EXAMPLE πŸ“

VARDIR=/root/shorewall

slay. a whole example. put it in a file and go.


🧚 FILES 🧚

  • /etc/shorewall-lite/vardir

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! 🫢 this one lives in the Configuration Files manual section, dated 09/24/2020, and it's filed under the name SHOREWALL-LITE-VAR(5). go forth, set your VARDIR, move your files first, and stay slay. πŸ’œπŸ’…πŸŒΈ