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