Closed STetzel closed 7 years ago
@STetzel thanks for this bug report! Any reason why are not using net.ipv6.conf.all.disable_ipv6
in order to disable ipv6? As far I remember this was the recommended way to do so, exactly because of this problems
cc @bitvijays
@artem-sidorenko The problem is that this procedure is performed by the integrated configuration tool "YAST". And is defined by SLES as Best-Practice. Also Oralce Enterprise Linux cc @bitvijays
@STetzel its weird. Do you have maybe some references here? Do not get me wrong, I believe you, I want to understand the reasons, as the official RH recommendation is completely different:
@artem-sidorenko yeah your right but we have also OEL5 systems ;-)
I also find that it is better not to start something when it is not necessary. Therefore, if the module is not loaded why should we set parameters for it.
Regarding OEL5, it looks like its EOL, so that should not be the reason to support it :-)
Still if I share the similar view like RH guys (and I faced a lot of problems by removing the ipv6 module completely), I think the use case is still valid and some people might have another view or maybe reasons to do it this way.
Maybe we could make the ipv6 sysctl flags dependent on the global manage ipv6 hardening
switch, so people could disable that completely? @STetzel would this be fine for you?
@atomic111 @chris-rock @bitvijays whats your view on this problem?
@artem-sidorenko Looks alright to me. Just to make sure we are on the same page. You meant that "We should check /etc/modprobe.conf file and see if there's a entry of "install ipv6 /bin/true". If it's there, ignore ipv6 check right?
Hello,
Why do not you check if /proc/net/if_inet6 exists as „file“ ? look http://mirrors.deepspace6.net/Linux+IPv6-HOWTO/proc-net.html http://mirrors.deepspace6.net/Linux+IPv6-HOWTO/proc-net.html
[ -f /proc/net/if_inet6 ] && echo 'IPv6 ready system!' || echo 'No IPv6 support found! Compile the kernel or load the modul!!'
regards Sascha (STetzel)
/proc/net/if_inet6 exist !
Am 06.06.2017 um 02:49 schrieb Vijay Kumar notifications@github.com:
@artem-sidorenko https://github.com/artem-sidorenko Looks alright to me. Just to make sure we are on the same page. You meant that "We should check /etc/modprobe.conf file and see if there's a entry of "install ipv6 /bin/true". If it's there, ignore ipv6 check right?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dev-sec/puppet-os-hardening/issues/82#issuecomment-306350210, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgG6g1zbFIp1zfW57PHF4HovAoHVIBcks5sBKIOgaJpZM4NpQ0c.
Hello,
any news about this ?!?
Regards Sascha (Stetzel)
Why do not you check if /proc/net/if_inet6 exists as „file“
@STetzel I personally do not like such intelligent logic in the security and automation area, often they produce hidden errors which are hard to troubleshoot and to understand. I still think a configuration flag here is good enough and its more reliable than logic with any autodetection behavior. Via config flag you could configure your expected behavior (e.g. ipv6 hardening is enabled), in worst case (e.g. unexpected state of the system where ipv6 module is not present) your puppet run will fail and make the problem visible
Looks alright to me. Just to make sure we are on the same page. You meant that "We should check /etc/modprobe.conf file and see if there's a entry of "install ipv6 /bin/true". If it's there, ignore ipv6 check right?
@bitvijays No, I think we could introduce here another option manage_ipv6
and set its default too true
. This can be moved to the new if $manage_ipv6
block. Users who do not want to have ipv6 managed, could disabled it completely
@artem-sidorenko manage_ipv6 sounds good to me. It seems to be a way better approach!
Cheers, bitvijays
@artem-sidorenko, @bitvijays you are right it is the best approach!
regards Sascha (Stetzel)
@STetzel Would it be alright for you to create a Pull request? @artem-sidorenko Should we go-ahead with this?
@bitvijays totally fine for me, I'll implement a similar thing for chef-os-hardening :)
Added Pullrequest #87
it works ;-)
We disable ipv6 on our SLES and OEL systems using
install ipv6 /bin/true
in /etc/modprobe.d/ipv6Is it possible before the ipv6 configurations to check whether ipv6 is activated at all?
For example, if the /proc/net/if_inet6 file exists !