Added load sysctl settings

This commit is contained in:
billz 2020-03-20 17:21:07 +00:00
parent 8dfed88ed3
commit 8216a3f4ec
1 changed files with 1 additions and 0 deletions

View File

@ -278,6 +278,7 @@ function default_configuration() {
echo "Enabling IP forwarding"
sudo touch $raspap_sysctl || install_error "Unable to create ${raspap_sysctl}"
echo "net.ipv4.ip_forward = 1" | sudo tee -a $raspap_sysctl || install_error "Unable to append to ${raspap_sysctl}"
sudo sysctl -p $raspap_sysctl || install_error "Unable to load sysctl settings from file"
fi
echo "Enabling persistent IP tables rules"