Skip to content
Snippets Groups Projects
Commit b9ad7e57 authored by Bob Mottram's avatar Bob Mottram
Browse files

ipv6 can be used

parent b399c50c
No related branches found
No related tags found
No related merge requests found
......@@ -577,15 +577,6 @@ function test_stig {
output "V-38544" $? ${SETLANG}
################
##RHEL-06-000098
##The IPv6 protocol handler must not be bound to the network stack unless needed.
bash $STIG_TESTS_DIR/check-ipv6-enable.sh >/dev/null 2>&1 &
stig_spinner $!
output "V-38546" $? ${SETLANG}
################
##RHEL-06-000099
##The system must ignore ICMPv6 redirects by default.
##If IPv6 is disabled, this is not applicable.
......
......@@ -178,6 +178,19 @@ function configure_internet_protocol {
sed -i "s|#net.ipv4.conf.default.accept_source_route.*|net.ipv4.conf.default.accept_source_route = 0|g" /etc/sysctl.conf
sed -i "s|net.ipv4.conf.default.accept_source_route.*|net.ipv4.conf.default.accept_source_route = 0|g" /etc/sysctl.conf
fi
if ! grep -q "net.ipv4.conf.default.secure_redirects" /etc/sysctl.conf; then
echo "net.ipv4.conf.default.secure_redirects = 0" >> /etc/sysctl.conf
else
sed -i "s|#net.ipv4.conf.default.secure_redirects.*|net.ipv4.conf.default.secure_redirects = 0|g" /etc/sysctl.conf
sed -i "s|net.ipv4.conf.default.secure_redirects.*|net.ipv4.conf.default.secure_redirects = 0|g" /etc/sysctl.conf
fi
net.ipv4.conf.default.accept_redirects = 0
if ! grep -q "net.ipv4.conf.default.accept_redirects" /etc/sysctl.conf; then
echo "net.ipv4.conf.default.accept_redirects = 0" >> /etc/sysctl.conf
else
sed -i "s|#net.ipv4.conf.default.accept_redirects.*|net.ipv4.conf.default.accept_redirects = 0|g" /etc/sysctl.conf
sed -i "s|net.ipv4.conf.default.accept_redirects.*|net.ipv4.conf.default.accept_redirects = 0|g" /etc/sysctl.conf
fi
mark_completed $FUNCNAME
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment