Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. serveur :
  2.  
  3. dev tap
  4. proto udp
  5. port 8876
  6.  
  7. ca /etc/openvpn/easy-rsa/keys/ca.crt
  8. cert /etc/openvpn/easy-rsa/keys/server.crt
  9. key /etc/openvpn/easy-rsa/keys/server.key
  10. dh /etc/openvpn/easy-rsa/keys/dh1024.pem
  11. tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0 # ajout pour multiple client
  12. # crl-verify /etc/openvpn/crl.pem # ajout pour révocation
  13. cipher AES-256-CBC # ajout pour un meilleur cryptage
  14.  
  15. user nobody
  16. group nogroup
  17. server 10.8.0.0 255.255.255.0
  18.  
  19. persist-key
  20. persist-tun
  21.  
  22. status /var/log/openvpn-status.log
  23. verb 3
  24. client-to-client
  25.  
  26. push "redirect-gateway def1"
  27. #set the dns servers
  28. push "dhcp-option DNS 8.8.8.8"
  29. push "dhcp-option DNS 8.8.4.4"
  30.  
  31. log-append /var/log/openvpn
  32. comp-lzo
  33.  
  34.  
  35.  
  36. client :
  37.  
  38. client
  39. dev tap proto udp
  40. #
  41. remote 195.154.34.9 8876
  42. #
  43. nobind
  44. persist-key
  45. persist-tun
  46. ca ca.crt
  47. cert HOME2.crt
  48. key HOME2.key
  49. remote-cert-tls server
  50. cipher AES-256-CBC
  51. comp-lzo
  52. verb 3
  53.  
  54.  
  55.  
  56.  
  57. voila si je calque sur ta config par contre j'ai pas trouver le tls-cert dans serveur (comme toi) et ns-cert-type dans client (comme toi)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement