Comments (6)
Hi @hdep , I understand that log_martians was somewhere enabled in this system and then you used os_hardening with this hiera setting to disable it, right? As os_hardening is only touching conf.all.log_martians
and conf.default.log_martians
, interface settings like conf.eth0.log_martians
are not changed at runtime. After a system reboot I'd say this should be fine ...
Have you rebooted this system since this change?
from puppet-os-hardening.
Hello,
Yes this is right, I think debian by default enable log_martian.
I didn't reboot any server, I'll give a try and let you know.
from puppet-os-hardening.
After a reboot I have a weird config, log_martians are enabled :
root@serveer:~# sysctl -a | grep martian
net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.default.log_martians = 1
net.ipv4.conf.eth0.log_martians = 1
net.ipv4.conf.lo.log_martians = 0
After a few minutes the config is changed :
root@server:~# sysctl -a | grep martian
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
I'm considering to avoid this issue to declare net.ipv4.conf.eth0.log_martians = 0
with another module.
from puppet-os-hardening.
Hmm ... that really looks like the system comes up with martians enabled (and therefore eth0
is also enabled), and then the sysctl settings from os_hardening disables all
and default
. I think the simplest solution would be to manually set net.ipv4.conf.eth0.log_martians
in /etc/sysctl.conf
or /etc/sysctl.d/
via a puppet rule.
from puppet-os-hardening.
@hdep What should we do with this issue? Can we close this?
from puppet-os-hardening.
I close the issue,
here is what I deployed on all my servers :
sysctl { "net.ipv4.conf.${facts['networking']['primary']}.log_martians":
ensure => present,
value => "0",
}
Because all my servers didn't got the same interface name (eth0, bond0...)
from puppet-os-hardening.
Related Issues (20)
- Default $arp_restricted=true breaks Calico overlay network HOT 7
- Fix Travis tests HOT 1
- Add support for Puppet 7 HOT 1
- Duplicate declaration HOT 1
- Dead links result in an error HOT 1
- tcp Timestamp comment is wrong, value can also be improved in some cases. HOT 1
- New warning - max_files - exceeds the default soft limit 1000 HOT 1
- Backwards incompatible breaking change in PR279 HOT 4
- Changelog generator broken
- Add the ability to override /etc/shadow permissions
- existing users do not change there "chage" values if they are already existing
- ignore_max_files_warnings does not work HOT 1
- Remove accidental paste in pam_passwdqc.erb
- Dependency Dashboard
- enable_core_dump parameter is boolean, should allow at least 3 values
- sysctl changes are not permanent HOT 1
- modern version of stdlib HOT 2
- Puppet 8x compatibility HOT 6
- os_hardening 2.4.0: system_umask confusion: String or Integer?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-os-hardening.