Hi,

On Wed, Feb 01, 2017 at 08:46:52PM +0200, Kapetanakis Giannis wrote:
> What do you mean "pick something out of the pool range"?
> 
> If the static IPs are from the same server-ipv6 /64 network, then there 
> is always a chance (small)
> that a dynamic client gets the same IP, thus having firewall access as a 
> static client.

Not really.

> I don't want that. The IPs from the pool are assigned in a serial way or 
> in a random way?

Serial.

> Is there a way to put an upper limit on the dynamic pool or to make it 
> more specific?

It's "server base address plus 0x1000 plus the relative number in the IPv4
pool".

So if your IPv4 pool is a, say, /16 (65000 addresses), your IPv6 address
will never be more than "server base address plus 0x1000 plus 65000" - just
start your static addresses at "server base address plus 0x1:0000:0000"
(4 billion), which the assignment algorithm will never reach.

You have 64 bits available - so using

   $net::1 for the server, and thus $net:0:0:0:nnnn for dynamic clients
   $net:0:1:0001:mmmm for static client 1
   $net:0:1:0002:xxxx for static client 2
   $net:0:1:0003:zzzz for static client 3
...

will be guaranteed collision-free.

gert

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]
fax: +49-89-35655025                        [email protected]

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to