mirror of
https://github.com/Nyr/openvpn-install.git
synced 2025-04-09 04:02:08 +00:00
drop privileges
This commit is contained in:
parent
095ebee8c3
commit
a0217f2a9f
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue