Don't accept redirects
This commit is contained in:
parent
b9ad7e57a3
commit
82a57bc41c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue