Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toggle_ipv6 script not functioning as expected #60

Open
wlmckeon opened this issue Oct 28, 2015 · 2 comments
Open

toggle_ipv6 script not functioning as expected #60

wlmckeon opened this issue Oct 28, 2015 · 2 comments

Comments

@wlmckeon
Copy link

The toggle_ipv6 script doesn't seem to toggle the ipv6. I think that this is due to the "install ipv6 /bin/false" in the blacklist (placed by misc/blacklist.sh) not being commented out and preventing the ipv6 kernel module from being loaded.

Also, may want to add a section like this for enabling ipv6:
grep -q IPV6FORWARDING /etc/sysconfig/network
if [ $? -ne 0 ]; then
echo "IPV6FORWARDING=yes" >> /etc/sysconfig/network
else
sed -i "/IPV6FORWARDING/s/no/yes/" /etc/sysconfig/network
fi

and do the reverse with disabling ipv6. This prevents the error message "Global IPv6 forwarding is disabled in configuration, but not currently disabled in kernel" from being displayed when restarting the network.

@wlmckeon
Copy link
Author

Looking at the Version 1 Revision 8 of the RHEL6 STIG, it looks like that it's not necessary to prevent the kernel module from loading. An easier fix may be just to modify blacklist.sh by removing the line "install ipv6 /bin/false" and just depend on "options ipv6 disable=1" to prevent IPv6 from binding to the network stack.

@fcaviggia
Copy link
Owner

I'll take a look at it. I'm still all for disabling something if it's not being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants