GSEC · Question #302
Which file would the entry below be found in? net.ipv6.conf.all.acctpt-ra=0
The correct answer is A. /etcsysctl.conf. Kernel runtime parameters such as IPv6 router advertisement acceptance are configured in /etc/sysctl.conf, which the kernel reads to apply persistent network and system tuning settings.
Question
Which file would the entry below be found in? net.ipv6.conf.all.acctpt-ra=0
Options
- A/etcsysctl.conf
- B/etc/crontab
- C/etc/shadow
- D/etc/hosts
- E/etc/pam.d/system-auth
How the community answered
(35 responses)- A80% (28)
- B3% (1)
- C6% (2)
- E11% (4)
Why each option
Kernel runtime parameters such as IPv6 router advertisement acceptance are configured in /etc/sysctl.conf, which the kernel reads to apply persistent network and system tuning settings.
/etc/sysctl.conf is the standard Linux configuration file for setting kernel parameters via the sysctl interface; entries like net.ipv6.conf.all.accept_ra=0 disable IPv6 router advertisement acceptance and are applied at boot or via 'sysctl -p'. This file is the canonical location for persistent kernel networking and security tuning.
/etc/crontab stores scheduled job definitions for the cron daemon and has no role in kernel parameter configuration.
/etc/shadow stores hashed user passwords and account aging information, unrelated to kernel networking settings.
/etc/hosts provides static hostname-to-IP mappings for local DNS resolution, not kernel parameter tuning.
/etc/pam.d/system-auth defines Pluggable Authentication Module rules for system authentication, unrelated to IPv6 kernel settings.
Concept tested: Linux kernel parameter configuration via sysctl.conf
Source: https://man7.org/linux/man-pages/man5/sysctl.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.