Ajout droits pour dossier ccd
This commit is contained in:
parent
a07072a45a
commit
a7a864e087
|
@ -529,10 +529,22 @@ ifconfig-pool 192.0.2.2 192.0.2.199 255.255.255.0
|
|||
client-config-dir /etc/openvpn/ccd
|
||||
~~~
|
||||
|
||||
* Dans le fichier `/etc/openvpn/ccd/client1` (`client1` étant le CN du client auquel attribuer l'IP statique), mettre la configuration suivante :
|
||||
* Créer le dossier `/etc/openvpn/ccd/` avec les bons droits :
|
||||
|
||||
~~~
|
||||
ifconfig-push 192.0.2.200 255.255.255.0
|
||||
# cd /etc/openvpn/
|
||||
# mkdir ccd
|
||||
# chmod 700 ccd
|
||||
# chown _openvpn:_openvpn ccd
|
||||
~~~
|
||||
|
||||
* Créer le fichier `/etc/openvpn/ccd/client1` (`client1` étant le CN du client auquel attribuer l'IP statique) avec les bons droits, et mettre la configuration suivante :
|
||||
|
||||
~~~
|
||||
# cd /etc/openvpn/ccd/
|
||||
# echo "ifconfig-push 192.0.2.200 255.255.255.0" > client1
|
||||
# chmod 600 client1
|
||||
# chown _openvpn:_openvpn client1
|
||||
~~~
|
||||
|
||||
* Répéter la configuration dans `/etc/openvpn/ccd/` pour chaque CN auquel attribuer une IP statique
|
||||
|
|
Loading…
Reference in a new issue