Skip to content

Instantly share code, notes, and snippets.

@jc97
jc97 / client-gen-ipv6
Last active August 18, 2023 23:43 — forked from jeremiejig/client-gen-ipv6
openvpn generate a random ipv6 address with a /64 prefix
#!/bin/bash
# to be used with client-connect option of openvpn
#Debug mode
#exec 2> script_debug
#set -x
# Simple dad by checking all files in pool dir
dad_check () {
local test_addr=$1