1 |
Le 25/02/2010 20:20, Joseph a écrit : |
2 |
> On 02/25/10 18:12, Xavier Parizet wrote: |
3 |
>> Le 25/02/2010 17:51, Joseph a ??crit : |
4 |
>>> On 02/25/10 08:40, Xavier Parizet wrote: |
5 |
>>>> On 02/25/2010 02:32 AM, Joseph wrote: |
6 |
>>>>> I've configured OpenVPN and it works OK but I can not seems to |
7 |
>>>>> figure it |
8 |
>>>>> out how to assign static IP to clients |
9 |
>>>>> |
10 |
>>>>> My server.conf port 8458 |
11 |
>>>>> [SNIP] |
12 |
>>>>> |
13 |
>>>>> On client in /etc/openvpn/ccd directory I've created a file "syscon9" |
14 |
>>>>> with: |
15 |
>>>>> ifconfig-push 192.168.139.15 192.168.139.1 |
16 |
>>>> |
17 |
>>>> Hmmm... 192.168.139.1 does not seem a remote netmask, isn't it ? |
18 |
>>>> man openvpn tell me the following for ifconfig-push: |
19 |
>>>> --ifconfig-push local remote-netmask |
20 |
>>>> |
21 |
>>>> so, put ifconfig-push 192.168.139.15 255.255.255.0 rather than the line |
22 |
>>>> above in the ccd directory. |
23 |
>>>> |
24 |
>>>> If it doesn't work, then please post the openvpn.log of the client. |
25 |
>>> |
26 |
>>> I've tried it many time, it doesn't work with the netmaks. File: syscon9 |
27 |
>>> from ccd: |
28 |
>>> cat syscon9 |
29 |
>>> ifconfig-push 192.168.0.15 255.255.255.0 |
30 |
>> ^^^ |
31 |
>> this is wrong (or maybe a typing mistake?) |
32 |
>> |
33 |
>> If it's a typing mistake, then please post now server side log. |
34 |
> |
35 |
> Yes, it was a typo :-/ I corrected it: |
36 |
> cat syscon9 |
37 |
> ifconfig-push 192.168.139.15 255.255.255.0 |
38 |
> |
39 |
> but from log you can see it still didn't give me what I want, I got IP |
40 |
> 192.168.139.6 and was asking for: 192.168.139.15 |
41 |
> |
42 |
> log: |
43 |
> cat /var/log/openvpn.log |
44 |
> [SNIP] |
45 |
|
46 |
Ok. After re-re-reading the man page, try to add parameter topology |
47 |
subnet to server config. If it still don't work, then _please_ post the |
48 |
openvpn.log of the server side. |
49 |
|
50 |
-- |
51 |
Xavier Parizet |
52 |
YaGB : http://gentooist.com |
53 |
GPG : C7DC B10E FC21 63BE |
54 |
B453 D239 F6E6 DF65 1569 91BF |