mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Added load sysctl settings
This commit is contained in:
parent
8dfed88ed3
commit
8216a3f4ec
@ -278,6 +278,7 @@ function default_configuration() {
|
|||||||
echo "Enabling IP forwarding"
|
echo "Enabling IP forwarding"
|
||||||
sudo touch $raspap_sysctl || install_error "Unable to create ${raspap_sysctl}"
|
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}"
|
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
|
fi
|
||||||
|
|
||||||
echo "Enabling persistent IP tables rules"
|
echo "Enabling persistent IP tables rules"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user