Skip to content

Commit

Permalink
Increase priority of openvpn-forward.conf
Browse files Browse the repository at this point in the history
`30-openvpn-forward.conf` renamed to `99-openvpn-forward.conf`.
  • Loading branch information
tpwo authored Mar 11, 2021
1 parent cb8730b commit 01b64d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openvpn-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,12 @@ crl-verify crl.pem" >> /etc/openvpn/server/server.conf
echo "explicit-exit-notify" >> /etc/openvpn/server/server.conf
fi
# Enable net.ipv4.ip_forward for the system
echo 'net.ipv4.ip_forward=1' > /etc/sysctl.d/30-openvpn-forward.conf
echo 'net.ipv4.ip_forward=1' > /etc/sysctl.d/99-openvpn-forward.conf
# Enable without waiting for a reboot or service restart
echo 1 > /proc/sys/net/ipv4/ip_forward
if [[ -n "$ip6" ]]; then
# Enable net.ipv6.conf.all.forwarding for the system
echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.d/30-openvpn-forward.conf
echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.d/99-openvpn-forward.conf
# Enable without waiting for a reboot or service restart
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
fi
Expand Down Expand Up @@ -537,7 +537,7 @@ else
systemctl disable --now [email protected]
rm -rf /etc/openvpn/server
rm -f /etc/systemd/system/[email protected]/disable-limitnproc.conf
rm -f /etc/sysctl.d/30-openvpn-forward.conf
rm -f /etc/sysctl.d/99-openvpn-forward.conf
if [[ "$os" = "debian" || "$os" = "ubuntu" ]]; then
apt-get remove --purge -y openvpn
else
Expand Down

0 comments on commit 01b64d6

Please sign in to comment.