mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-22 16:59:03 +01:00
Merge branch 'master' of https://github.com/jtbr/OpenVPN-install
Conflicts: README.md openvpn-install.sh
This commit is contained in:
commit
3c8a6a0469
@ -253,6 +253,12 @@ else
|
|||||||
yum install epel-release -y
|
yum install epel-release -y
|
||||||
yum install openvpn iptables openssl wget ca-certificates curl -y
|
yum install openvpn iptables openssl wget ca-certificates curl -y
|
||||||
fi
|
fi
|
||||||
|
# find out if the machine uses nogroup or nobody for the permissionless group
|
||||||
|
if grep -qs "^nogroup:" /etc/group; then
|
||||||
|
NOGROUP=nogroup
|
||||||
|
else
|
||||||
|
NOGROUP=nobody
|
||||||
|
fi
|
||||||
|
|
||||||
# An old version of easy-rsa was available by default in some openvpn packages
|
# An old version of easy-rsa was available by default in some openvpn packages
|
||||||
if [[ -d /etc/openvpn/easy-rsa/ ]]; then
|
if [[ -d /etc/openvpn/easy-rsa/ ]]; then
|
||||||
@ -300,7 +306,7 @@ cert server.crt
|
|||||||
key server.key
|
key server.key
|
||||||
dh dh.pem
|
dh dh.pem
|
||||||
user nobody
|
user nobody
|
||||||
group nogroup
|
group $NOGROUP
|
||||||
topology subnet
|
topology subnet
|
||||||
server 10.8.0.0 255.255.255.0
|
server 10.8.0.0 255.255.255.0
|
||||||
ifconfig-pool-persist ipp.txt
|
ifconfig-pool-persist ipp.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user