On 2024-02-08, David W. Hodgins <
[email protected]> wrote:
On Wed, 07 Feb 2024 21:55:35 -0500, William Unruh <[email protected]> wrote:
Shore wall is dumping its messages into dmesg, rather than say
/var/log/shorewall (which is empty) That rather fills dmesg with DROP
messages
[8024391.572953] Shorewall:sshd-fw:DROP:IN=eno1 OUT= MAC=4c:ed:fb:c2:2a:f3:a0:ab:1b:88:6e:58:08:00 SRC=185.196.8.151 DST=192.168.0.3 LEN=40 TOS=0x00 PREC=0xA0 TTL=250 ID=54321 PROTO=TCP SPT=40237 DPT=22 WINDOW=65535 RES=0x00 SYN URGP=0
IIRC that's fixed by creating a file with one line such as /etc/sysctl.d/kernel.msg.conf
kernel.printk=3 4 1 3
Then run as root "sysctl --system".
That did not work.
The "explanation" in the article below is rather confusing
"starting from level 0 and decreasing in severity ’till level 7: the
lowest log level identifier, the most critical context." I have no idea
what that means. It seems to be saying that level 7 is the most
critical context. Is that right (Ie, this the opposite to the rsyslog
levels which have lower numbers more critical than high numbers).
"log level lower than it, (therefore messages with an higher severity)"
Whereas this sentence seems to say the opposite.
Or did the first quote mean to say "have lower numbers, the more
critical context.
But then I do not understand the log level of shorewall. Where are thos
DROP messages being sent to?
"The third value in the output reports the minimum_console_loglevel
status. It indicates the minimum loglevel which can be used for
console_loglevel. The level here used it’s 1, the highest."
7 is higher than 0. But that does not seem to be what they mean by
higher.
But my problem is with dmesg, not with the console. It is dmesg whic
his filling up with shorewall DROP messages, not the consooe. (Mind you
I told the sytem to stop drumping log stuff into the cosold anywahy
sicen it is really really really annoying to mafe the console filling
with garbage while one is deperately trying to fix so crucial error.
Ie, I have the printk file listing 3 4 1 3 as you suggested and dmesg is
still being innundated by DROP messages.
See https://linuxconfig.org/introduction-to-the-linux-kernel-log-levels
for details.
Regards, Dave Hodgins
--- MBSE BBS v1.0.8.5 (Linux-x86_64)
* Origin: A noiseless patient Spider (2:250/1@fidonet)