Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] openvpn static ip
Date: Fri, 26 Feb 2010 09:09:14
Message-Id: 201002260933.21733.joost@antarean.org
In Reply to: Re: [gentoo-user] openvpn static ip by Joseph
1 On Friday 26 February 2010 01:39:55 Joseph wrote:
2 > On 02/25/10 22:17, Xavier Parizet wrote:
3 > >From what i can see, please try to add full path to the ccd directory in
4 > >client-config-dir directive on the server path. Also check permissions
5 > >on that directory. On which user are you running openvpn on the server ?
6 > >On the client ?
7 >
8 > On client:
9 > drwxr-xr-x 2 root root 4096 Feb 24 18:49 ccd
10 > -rw-r--r-- 1 root root 45 Feb 25 12:13 syscon9
11 >
12 > so this looks OK,
13
14 From this, it looks like the "syscon9" file is not in the ".../ccd/"
15 directory?
16
17 Also, isn't this file supposed to be on the server?
18
19 > >Can you increase verbosity and see if there is no open fails on the
20 > >server ? If it works, you should have the following line in server logs:
21 > >OPTIONS IMPORT: reading client specific options from: [path to
22 > > ccd]/syscon9 MULTI: Learn: [192.168.139.15] -> syscon9/[ip source:port
23 > > source]
24 >
25 > I've increased verbosity on server to 9
26 > but I can not find any phrase in the serer log file: "fails" "IMPORT"
27 >
28 > but I've noticed this section on the server log:
29 >
30 > ...syscon9/68.148.245.78:56172 TEST FILE '/etc/openvpn/ccd/syscon9' [0]
31 > ...syscon9/68.148.245.78:56172 TEST FILE '/etc/openvpn/ccd/DEFAULT' [0]
32 > ...syscon9/68.148.245.78:56172 MULTI: Learn: 192.168.139.2 ->
33 > syscon9/68.148.245.78:56172
34 >
35 > If I change the directory to "ccd" the log just shows:
36 > ...syscon9/68.148.245.78:56172 TEST FILE 'ccd/syscon9' [0]
37 > ...syscon9/68.148.245.78:56172 TEST FILE 'ccd/DEFAULT' [0
38
39 This seems to indicate it can't actually find the file
40 "/etc/openvpn/ccd/syscon9"
41
42 This file needs to be located on the server, not on the client, as it's the
43 server that determines the IP-address for the client.
44
45 --
46 Joost

Replies

Subject Author
Re: [gentoo-user][SOLVED] openvpn static ip Joseph <syscon780@×××××.com>