big svn cleanup
[anytun.git] / src / openvpn / sample-config-files / xinetd-server-config
blob803a6f8ff33dd449e8030313a1880e99ba3d74fe
1 # An xinetd configuration file for OpenVPN.
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.
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.
15 service openvpn_1
17         type            = UNLISTED
18         port            = 1194
19         socket_type     = dgram
20         protocol        = udp
21         wait            = yes
22         user            = root
23         server          = /root/openvpn/openvpn
24         server_args     = --inetd --dev tun --ifconfig 10.4.0.2 10.4.0.1 --secret /root/openvpn/key --inactive 600 --user nobody