Don't accept redirects

This commit is contained in:
Bob Mottram 2016-11-30 17:04:56 +00:00
parent b9ad7e57a3
commit 82a57bc41c
1 changed files with 0 additions and 1 deletions

View File

@ -184,7 +184,6 @@ function configure_internet_protocol {
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