Skip to content

Commit

Permalink
fix net.ipv4.ip_forward settings
Browse files Browse the repository at this point in the history
If the `/etc/sysctl.conf` contains `net.ipv4.ip_forward_use_pmtu`
  • Loading branch information
hhktony authored Sep 6, 2016
1 parent 791c547 commit 799b8f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvpn-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ status openvpn-status.log
verb 3
crl-verify crl.pem" >> /etc/openvpn/server.conf
# Enable net.ipv4.ip_forward for the system
sed -i '/net.ipv4.ip_forward/c\net.ipv4.ip_forward=1' /etc/sysctl.conf
if ! grep -q "net.ipv4.ip_forward" /etc/sysctl.conf; then
sed -i '/\<net.ipv4.ip_forward\>/c\net.ipv4.ip_forward=1' /etc/sysctl.conf
if ! grep -q "\<net.ipv4.ip_forward\>" /etc/sysctl.conf; then
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
fi
# Avoid an unneeded reboot
Expand Down

0 comments on commit 799b8f9

Please sign in to comment.