Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |||
informatique:linux:openvpn [2020/05/29 15:24] benoit [Configuration] |
informatique:linux:openvpn [2020/05/29 15:24] (Version actuelle) benoit [Configuration] |
||
---|---|---|---|
Ligne 115: | Ligne 115: | ||
# Interface | # Interface | ||
dev tun | dev tun | ||
+ | | ||
# Path to certificates | # Path to certificates | ||
ca server/keys/ca.crt | ca server/keys/ca.crt | ||
Ligne 121: | Ligne 121: | ||
key server/keys/server.key | key server/keys/server.key | ||
dh server/keys/dh2048.pem | dh server/keys/dh2048.pem | ||
+ | | ||
# VPN network | # VPN network | ||
server 10.8.0.0 255.255.255.0 | server 10.8.0.0 255.255.255.0 | ||
+ | | ||
# Other settings | # Other settings | ||
ifconfig-pool-persist ipp.txt | ifconfig-pool-persist ipp.txt | ||
Ligne 135: | Ligne 135: | ||
status openvpn-status.log | status openvpn-status.log | ||
verb 3 | verb 3 | ||
+ | | ||
# On définit le serveur VPN comme passerelle par défaut pour les clients. | # On définit le serveur VPN comme passerelle par défaut pour les clients. | ||
push "redirect-gateway def1" | push "redirect-gateway def1" | ||
push "route 10.9.8.0 255.255.252.0" | push "route 10.9.8.0 255.255.252.0" | ||
+ | | ||
# Default DNS for VPN clients | # Default DNS for VPN clients | ||
push "dhcp-option DNS 8.8.8.8" | push "dhcp-option DNS 8.8.8.8" |