Le 25/02/2010 20:20, Joseph a écrit :
> On 02/25/10 18:12, Xavier Parizet wrote:
>> Le 25/02/2010 17:51, Joseph a ??crit :
>>> On 02/25/10 08:40, Xavier Parizet wrote:
>>>> On 02/25/2010 02:32 AM, Joseph wrote:
>>>>> I've configured OpenVPN and it works OK but I can not seems to
>>>>> figure it
>>>>> out how to assign static IP to clients
>>>>>
>>>>> My server.conf port 8458
>>>>> [SNIP]
>>>>>
>>>>> On client in /etc/openvpn/ccd directory I've created a file "syscon9"
>>>>> with:
>>>>> ifconfig-push 192.168.139.15 192.168.139.1
>>>>
>>>> Hmmm... 192.168.139.1 does not seem a remote netmask, isn't it ?
>>>> man openvpn tell me the following for ifconfig-push:
>>>> --ifconfig-push local remote-netmask
>>>>
>>>> so, put ifconfig-push 192.168.139.15 255.255.255.0 rather than the line
>>>> above in the ccd directory.
>>>>
>>>> If it doesn't work, then please post the openvpn.log of the client.
>>>
>>> I've tried it many time, it doesn't work with the netmaks. File: syscon9
>>> from ccd:
>>> cat syscon9
>>> ifconfig-push  192.168.0.15 255.255.255.0
>>                        ^^^
>>                         this is wrong (or maybe a typing mistake?)
>>
>> If it's a typing mistake, then please post now server side log.
> 
> Yes, it was a typo :-/ I corrected it:
> cat syscon9
> ifconfig-push  192.168.139.15 255.255.255.0
> 
> but from log you can see it still didn't give me what I want, I got IP
> 192.168.139.6 and was asking for: 192.168.139.15
> 
> log:
> cat /var/log/openvpn.log
> [SNIP]

Ok. After re-re-reading the man page, try to add parameter topology
subnet to server config. If it still don't work, then _please_ post the
openvpn.log of the server side.

-- 
      Xavier Parizet
YaGB :   http://gentooist.com
GPG  :    C7DC B10E FC21 63BE
B453 D239 F6E6 DF65 1569 91BF

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to