Update openvpn-install.sh

This commit is contained in:
hybtoy 2018-05-09 10:19:49 +05:00 committed by GitHub
parent 0e7866cb71
commit 8a1c3517a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -690,7 +690,6 @@ WantedBy=multi-user.target" > /etc/systemd/system/iptables.service
elif [[ "$PROTOCOL" = '2' ]]; then
echo "proto tcp" >> /etc/openvpn/server.conf
echo "socket-flags TCP_NODELAY" >> /etc/openvpn/server.conf
echo "push "socket-flags TCP_NODELAY"" >> /etc/openvpn/server.conf
fi
echo "dev tun
user nobody
@ -884,6 +883,7 @@ verb 3" >> /etc/openvpn/server.conf
echo "proto udp" >> /etc/openvpn/client-template.txt
elif [[ "$PROTOCOL" = '2' ]]; then
echo "proto tcp-client" >> /etc/openvpn/client-template.txt
echo "socket-flags TCP_NODELAY" >> /etc/openvpn/client-template.txt
fi
echo "remote $IP $PORT
dev tun