mirror of
https://github.com/pivpn/pivpn.git
synced 2025-01-18 10:34:27 +00:00
Fix Alpine persistence
This commit is contained in:
parent
55ed0cb3a5
commit
4e4d608b35
1 changed files with 10 additions and 0 deletions
|
@ -3296,6 +3296,10 @@ confNetwork() {
|
||||||
|
|
||||||
${SUDO} sysctl -p /etc/sysctl.d/99-pivpn.conf > /dev/null
|
${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
|
if [[ "${USING_UFW}" -eq 1 ]]; then
|
||||||
echo "::: Detected UFW is enabled."
|
echo "::: Detected UFW is enabled."
|
||||||
echo "::: Adding UFW rules..."
|
echo "::: Adding UFW rules..."
|
||||||
|
@ -3578,6 +3582,12 @@ confNetwork() {
|
||||||
${SUDO} ip6tables-save \
|
${SUDO} ip6tables-save \
|
||||||
| ${SUDO} tee /etc/iptables/rules.v6 > /dev/null
|
| ${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
|
esac
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue