Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. port 1194
  2. proto udp
  3. dev tun
  4. ca ca.crt
  5. cert server.crt
  6. key server.key # This file should be kept secret
  7. dh dh2048.pem
  8. server 10.8.0.0 255.255.255.0
  9. ifconfig-pool-persist ipp.txt
  10. push "redirect-gateway def1 bypass-dhcp"
  11. push "dhcp-option DNS xxx.xxx.xxx.xxx" #My server's public IP
  12. ;push "dhcp-option DNS 208.67.220.220"
  13. keepalive 10 120
  14. tls-auth ta.key 0 # This file is secret
  15. key-direction 0
  16. cipher AES-128-CBC # AES
  17. auth SHA256
  18. comp-lzo
  19. user nobody
  20. group nogroup
  21. persist-key
  22. persist-tun
  23. status openvpn-status.log
  24. verb 3
  25.  
  26. *nat
  27. :POSTROUTING ACCEPT [0:0]
  28. -A POSTROUTING -s 10.8.0.0/8 -o eth0 -j MASQUERADE
  29. COMMIT
  30. #Rest of file left out for brevity
  31.  
  32. client
  33. dev tun
  34. proto udp
  35. remote xxx.xxx.xxx.xxx 1194 #My server's public IP
  36. resolv-retry infinite
  37. nobind
  38. user nobody
  39. group nogroup
  40. persist-key
  41. persist-tun
  42. cipher AES-128-CBC
  43. auth SHA256
  44. key-direction 1
  45. remote-cert-tls server
  46. comp-lzo
  47. verb 3
  48. <ca>
  49. -----BEGIN CERTIFICATE-----
  50. # Certificate string exists here
  51. -----END CERTIFICATE-----
  52. </ca>
  53. <cert>
  54. # Certificate data
  55. -----END CERTIFICATE-----
  56. </cert>
  57. <key>
  58. -----BEGIN PRIVATE KEY-----
  59. #Private key here
  60. -----END PRIVATE KEY-----
  61. </key>
  62. <tls-auth>
  63. -----BEGIN OpenVPN Static key V1-----
  64. #OpenVPN static key
  65. -----END OpenVPN Static key V1-----
  66. </tls-auth>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement