public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Xavier Parizet <xav@gentooist.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] openvpn static ip
Date: Thu, 25 Feb 2010 21:09:01 +0100	[thread overview]
Message-ID: <4B86D8DD.1030705@gentooist.com> (raw)
In-Reply-To: <20100225192009.GA6860@syscon4.inet>

[-- Attachment #1: Type: text/plain, Size: 1852 bytes --]

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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

  parent reply	other threads:[~2010-02-25 20:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25  1:32 [gentoo-user] openvpn static ip Joseph
2010-02-25  2:51 ` Albert Hopkins
2010-02-25  3:37   ` Joseph
2010-02-25 11:56     ` Albert Hopkins
2010-02-25 16:52       ` Joseph
2010-02-25  7:40 ` Xavier Parizet
2010-02-25 16:51   ` Joseph
2010-02-25 17:12     ` Xavier Parizet
2010-02-25 19:20       ` Joseph
2010-02-25 20:01         ` Etaoin Shrdlu
2010-02-25 20:09         ` Xavier Parizet [this message]
2010-02-25 21:01           ` Joseph
2010-02-25 21:17             ` Xavier Parizet
2010-02-25 22:21               ` Joseph
2010-02-26  7:34                 ` Xavier Parizet
2010-02-26  0:39               ` Joseph
2010-02-26  8:33                 ` J. Roeleveld
2010-02-26 15:13                   ` [gentoo-user][SOLVED] " Joseph

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B86D8DD.1030705@gentooist.com \
    --to=xav@gentooist.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox