ocserv.conf 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # The default domain to be advertised
  2. # Connection-specific DNS suffixes
  3. default-domain = srv
  4. auth = "plain[passwd=/etc/ocserv/ocpasswd]"
  5. #auth = "certificate"
  6. #enable-auth = "plain[passwd=/etc/ocserv/ocpasswd]"
  7. enable-auth = "certificate"
  8. # TCP and UDP port
  9. tcp-port = 443
  10. udp-port = 0
  11. run-as-user = nobody
  12. run-as-group = daemon
  13. server-cert = /etc/ocserv/server.cert.pem
  14. server-key = /etc/ocserv/server.key.pem
  15. ca-cert = /etc/ocserv/ca.cert.pem
  16. socket-file = /run/ocserv.socket
  17. occtl-socket-file = /run/occtl.socket
  18. pid-file = /run/ocserv.pid
  19. cert-user-oid = 2.5.4.3
  20. cert-group-oid = 2.5.4.11
  21. config-per-group = /etc/ocserv/group
  22. default-group-config = /etc/ocserv/group/Default
  23. default-select-group = Default
  24. auto-select-group = false
  25. net-priority = 6
  26. max-clients = 0
  27. max-same-clients = 0
  28. # switch-to-tcp-timeout = 0
  29. max-ban-score = 0
  30. min-reauth-time = 1
  31. dpd = 3
  32. idle-timeout = 8
  33. # mobile-dpd = 8
  34. # mobile-idle-timeout = 32
  35. persistent-cookies = true
  36. cookie-timeout = 256
  37. keepalive = 32
  38. auth-timeout = 64
  39. rekey-time = 86400
  40. rekey-method = ssl
  41. deny-roaming = false
  42. mtu = 1412
  43. try-mtu-discovery = true
  44. output-buffer = 0
  45. compression = false
  46. no-compress-limit = 256
  47. use-utmp = false
  48. use-occtl = true
  49. device = ocserv
  50. predictable-ips = true
  51. ping-leases = false
  52. dtls-psk = false
  53. cisco-client-compat = true
  54. tunnel-all-dns = true
  55. isolate-workers = false
  56. tls-priorities = "PERFORMANCE:%SERVER_PRECEDENCE:%COMPAT:-VERS-ALL:-VERS-TLS-ALL:-VERS-DTLS-ALL:-VERS-SSL3.0:-ARCFOUR-128:+VERS-TLS1.2:+VERS-TLS1.3"
  57. listen-host = 0.0.0.0
  58. ipv4-network = 192.168.144.0
  59. ipv4-netmask = 255.255.255.0
  60. dns = 192.168.144.1