1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-28 07:56:07 +03:00

drop privileges

This commit is contained in:
Philipp Menge 2015-11-28 18:50:02 +01:00
parent 095ebee8c3
commit a0217f2a9f

View File

@ -52,7 +52,7 @@ newclient () {
echo "</key>" >> ~/$1.ovpn
echo "<tls-auth>" >> ~/$1.ovpn
cat /etc/openvpn/easy-rsa/ta.key >> ~/$1.ovpn
echo "</tls-auth>"
echo "</tls-auth>" >> ~/$1.ovpn
}
@ -224,6 +224,8 @@ else
cp ta.key pki/ca.crt pki/private/ca.key pki/dh.pem pki/issued/server.crt pki/private/server.key /etc/openvpn
# Generate server.conf
echo "port $PORT
user nobody
group nobody
proto udp
dev tun
sndbuf 0