How to generate random ipv6 address for users

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Steven_Yang
OpenVpn Newbie
Posts: 2
Joined: Sun May 20, 2018 12:50 am

How to generate random ipv6 address for users

Post by Steven_Yang » Sun May 20, 2018 1:54 am

The ipv6 part in my server config file is

server ipv6 config

server-ipv6 2001:da8:d800:xxxx:xxxx:8::/96
push "route-ipv6 2000::/3"


So the ipv6 gateway is 2001:da8:d800:xxxx:xxxx:8:0:1 and the client address starts from 2001:da8:d800:xxxx:xxxx:8:0:1000

How to generate address randomly in the /96 prefix to let the one single address not used too frequently?(e.g. 2001:da8:d800:xxxx:xxxx:8:d1ee:cf49)

Post Reply