xinetd-server-config 989 B

12345678910111213141516171819202122232425
  1. # An xinetd configuration file for OpenVPN.
  2. #
  3. # This file should be renamed to openvpn or something suitably
  4. # descriptive and copied to the /etc/xinetd.d directory.
  5. # xinetd can then be made aware of this file by restarting
  6. # it or sending it a SIGHUP signal.
  7. #
  8. # For each potential incoming client, create a separate version
  9. # of this configuration file on a unique port number. Also note
  10. # that the key file and ifconfig endpoints should be unique for
  11. # each client. This configuration assumes that the OpenVPN
  12. # executable and key live in /root/openvpn. Change this to fit
  13. # your environment.
  14. service openvpn_1
  15. {
  16. type = UNLISTED
  17. port = 1194
  18. socket_type = dgram
  19. protocol = udp
  20. wait = yes
  21. user = root
  22. server = /root/openvpn/openvpn
  23. server_args = --inetd --dev tun --ifconfig 10.4.0.2 10.4.0.1 --secret /root/openvpn/key --inactive 600 --user nobody
  24. }