1
0

const.go 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package ovpm
  2. const (
  3. // Version defines the version of ovpm.
  4. Version = "0.2.6"
  5. // DefaultVPNPort is the default OpenVPN port to listen.
  6. DefaultVPNPort = "1197"
  7. // DefaultVPNProto is the default OpenVPN protocol to use.
  8. DefaultVPNProto = UDPProto
  9. // DefaultVPNNetwork is the default OpenVPN network to use.
  10. DefaultVPNNetwork = "10.9.0.0/24"
  11. // DefaultVPNDNS is the default DNS to push to clients.
  12. DefaultVPNDNS = "8.8.8.8"
  13. etcBasePath = "/etc/ovpm/"
  14. varBasePath = "/var/db/ovpm/"
  15. _DefaultConfigPath = etcBasePath + "ovpm.ini"
  16. _DefaultDBPath = varBasePath + "db.sqlite3"
  17. _DefaultVPNConfPath = varBasePath + "server.conf"
  18. _DefaultVPNCCDPath = varBasePath + "ccd"
  19. _DefaultCertPath = varBasePath + "server.crt"
  20. _DefaultKeyPath = varBasePath + "server.key"
  21. _DefaultCACertPath = varBasePath + "ca.crt"
  22. _DefaultCAKeyPath = varBasePath + "ca.key"
  23. _DefaultDHParamsPath = varBasePath + "dh4096.pem"
  24. _DefaultCRLPath = varBasePath + "crl.pem"
  25. )
  26. // Testing is used to determine whether we are testing or running normally.
  27. // Set it to true when testing.
  28. var Testing = false