roadwarrior-server.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ########################################
  2. # Sample OpenVPN config file for
  3. # 2.0-style multi-client udp server
  4. #
  5. # Adapted from http://openvpn.sourceforge.net/20notes.html
  6. #
  7. # tun-style tunnel
  8. port 1194
  9. dev tun
  10. # Use "local" to set the source address on multi-homed hosts
  11. #local [IP address]
  12. # TLS parms
  13. tls-server
  14. ca sample-keys/tmp-ca.crt
  15. cert sample-keys/server.crt
  16. key sample-keys/server.key
  17. dh sample-keys/dh1024.pem
  18. # Tell OpenVPN to be a multi-client udp server
  19. mode server
  20. # The server's virtual endpoints
  21. ifconfig 10.8.0.1 10.8.0.2
  22. # Pool of /30 subnets to be allocated to clients.
  23. # When a client connects, an --ifconfig command
  24. # will be automatically generated and pushed back to
  25. # the client.
  26. ifconfig-pool 10.8.0.4 10.8.0.255
  27. # Push route to client to bind it to our local
  28. # virtual endpoint.
  29. push "route 10.8.0.1 255.255.255.255"
  30. # Push any routes the client needs to get in
  31. # to the local network.
  32. push "route 192.168.0.0 255.255.255.0"
  33. # Push DHCP options to Windows clients.
  34. push "dhcp-option DOMAIN example.com"
  35. push "dhcp-option DNS 192.168.0.1"
  36. push "dhcp-option WINS 192.168.0.1"
  37. # Client should attempt reconnection on link
  38. # failure.
  39. keepalive 10 60
  40. # Delete client instances after some period
  41. # of inactivity.
  42. inactive 600
  43. # Route the --ifconfig pool range into the
  44. # OpenVPN server.
  45. route 10.8.0.0 255.255.255.0
  46. # The server doesn't need privileges
  47. user openvpn
  48. group openvpn
  49. # Keep TUN devices and keys open across restarts.
  50. persist-tun
  51. persist-key
  52. verb 4