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

Don't accept redirects

parent b9ad7e57
No related branches found
No related tags found
No related merge requests found
...@@ -184,7 +184,6 @@ function configure_internet_protocol { ...@@ -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
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 fi
net.ipv4.conf.default.accept_redirects = 0
if ! grep -q "net.ipv4.conf.default.accept_redirects" /etc/sysctl.conf; then if ! grep -q "net.ipv4.conf.default.accept_redirects" /etc/sysctl.conf; then
echo "net.ipv4.conf.default.accept_redirects = 0" >> /etc/sysctl.conf echo "net.ipv4.conf.default.accept_redirects = 0" >> /etc/sysctl.conf
else else
......
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