-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Description
Describe the bug
I use this module to disable, log martians on my system (Debian 9/10) using following hiera config :
os_hardening::enable_log_martians: false
But my syslog still have log martians :
2021-06-04 14:06:11 host:server [5551525.151041] IPv4: martian source 192.168.66.80 from 0.0.0.0, on dev eth0
2021-06-04 14:06:11 host:server [5551525.151051] ll header: 00000000: ff ff ff ff ff ff 00 00 00 09 02 01 08 00 ..............
Here is my /etc/sysctl.conf file :
root@server:/var/log/apache2# cat /etc/sysctl.conf | grep martian
#net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.all.log_martians = 0
net.ipv4.conf.default.log_martians = 0
Looking at sysctl output the issue come from the key net.ipv4.conf.eth0.log_martians which is not managed by the module.
root@cefrsvc-lbneb12:/var/log/apache2# sysctl -a| grep martians
net.ipv4.conf.all.log_martians = 0
net.ipv4.conf.default.log_martians = 0
net.ipv4.conf.eth0.log_martians = 1
net.ipv4.conf.lo.log_martians = 0
Expected behavior
I expected the system to stop logging those messages in /var/log/syslog
2021-06-04 14:06:11 host:server [5551525.151041] IPv4: martian source 192.168.66.80 from 0.0.0.0, on dev eth0
2021-06-04 14:06:11 host:server [5551525.151051] ll header: 00000000: ff ff ff ff ff ff 00 00 00 09 02 01 08 00 ..............
for this the module must managed the key net.ipv4.conf.eth0.log_martians
Actual behavior
log martian are in /var/log/syslog
Example code
OS / Environment
Debian 9
Debian 10
Puppet Version
5.5.22
Additional context
module version used 2.2.5
Metadata
Metadata
Assignees
Labels
No labels