1
0

const.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package ovpm
  2. const (
  3. // Version defines the version of ovpm.
  4. Version = "0.2.7-beta"
  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. // DefaultDaemonPort is the port OVPMD will listen by default if something else is not specified.
  14. DefaultDaemonPort = 9090
  15. etcBasePath = "/etc/ovpm/"
  16. varBasePath = "/var/db/ovpm/"
  17. _DefaultConfigPath = etcBasePath + "ovpm.ini"
  18. _DefaultDBPath = varBasePath + "db.sqlite3"
  19. _DefaultVPNConfPath = varBasePath + "server.conf"
  20. _DefaultVPNCCDPath = varBasePath + "ccd"
  21. _DefaultCertPath = varBasePath + "server.crt"
  22. _DefaultKeyPath = varBasePath + "server.key"
  23. _DefaultCACertPath = varBasePath + "ca.crt"
  24. _DefaultCAKeyPath = varBasePath + "ca.key"
  25. _DefaultDHParamsPath = varBasePath + "dh4096.pem"
  26. _DefaultCRLPath = varBasePath + "crl.pem"
  27. _DefaultStatusLogPath = varBasePath + "openvpn-status.log"
  28. )
  29. // Testing is used to determine whether we are testing or running normally.
  30. // Set it to true when testing.
  31. var Testing = false