OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: aklidevlop on January 28, 2025, 11:00:01 AM

Title: How to Change Login and Post-Login Messages in OPNsense
Post by: aklidevlop on January 28, 2025, 11:00:01 AM
Hi everyone,


I'm looking for guidance on how to customize the pre-login message (displayed before the login prompt) and the post-login message (displayed after a successful login) for all connection types in OPNsense, including console, SSH

Specifically, I'd like to:


I'd appreciate any specific steps, files to edit, or tips for ensuring the changes are applied.
Thanks in advance for your help!
Title: Re: How to Change Login and Post-Login Messages in OPNsense
Post by: Seimus on January 29, 2025, 10:03:56 AM
The default banner of OPNsense, e.g "Hello this is OPNsense X.yz" is basically motd "Message of the day"

This is stored in /var/run/motd but rebuilt (at boot times and when the sysadmin so chooses) from /etc/motd.template.

have a look at the man
https://man.freebsd.org/cgi/man.cgi?query=motd&sektion=5&manpath=freebsd-release-ports

Regards,
S.