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:
parent
095ebee8c3
commit
a0217f2a9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user