From 4e4d608b35255680eb1545bfb5555c5b74411b31 Mon Sep 17 00:00:00 2001 From: wlmchen Date: Sun, 28 Jul 2024 17:29:36 -0700 Subject: [PATCH] Fix Alpine persistence --- auto_install/install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/auto_install/install.sh b/auto_install/install.sh index c89abe0..e42e767 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -3296,6 +3296,10 @@ confNetwork() { ${SUDO} sysctl -p /etc/sysctl.d/99-pivpn.conf > /dev/null + if [[ "${PLAT}" == 'Alpine' ]]; then + ${SUDO} rc-update add sysctl + fi + if [[ "${USING_UFW}" -eq 1 ]]; then echo "::: Detected UFW is enabled." echo "::: Adding UFW rules..." @@ -3578,6 +3582,12 @@ confNetwork() { ${SUDO} ip6tables-save \ | ${SUDO} tee /etc/iptables/rules.v6 > /dev/null ;; + Alpine) + ${SUDO} rc-service iptables save + ${SUDO} rc-service ip6tables save + ${SUDO} rc-update add iptables + ${SUDO} rc-update add ip6tables + ;; esac {