~ubuntu-branches/ubuntu/saucy/openvpn/saucy-proposed

« back to all changes in this revision

Viewing changes to sample/sample-config-files/xinetd-server-config

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2013-05-24 17:42:45 UTC
  • mfrom: (1.1.19) (10.2.22 sid)
  • Revision ID: package-import@ubuntu.com-20130524174245-g9y6wlforycufqy5
Tags: 2.3.1-2ubuntu1
* Merge from Debian unstable. Remaining changes:
  - debian/openvpn.init.d:
    + Do not use start-stop-daemon and </dev/null to avoid blocking boot.
    + Show per-VPN result messages.
    + Add "--script-security 2" by default for backwards compatabliity.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
15
service openvpn_1
 
16
{
 
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
 
25
}