Email or username:

Password:

Forgot your password?
Tara 🌷

I wrote a small script to generate (random) private IPv6 network address.

I'm not sure if it will be useful to anyone. I use it in many places, like generating Wireguard private addresses or in network testing environments.

As I'm slowly migrating to Codeberg, I decided to share this. It should work on FreeBSD, Linux and MacOS.

codeberg.org/tarastella/ipv6-n

#ipv6 #network #wireguard #vpn #intranet #macos #freebsd #linux

4 comments
Brett Sheffield (he/him)

@tara Remember to add a LICENSE, even on small scripts if you want to allow others to use it.

mkj

@tara Isn't reading 1 MB of random data a little excessive for creating a 160 bits (20 bytes) hash?

Tara 🌷

@mkj, perhaps yes. I thought that increasing the size would generate even more random data for a more unique hash, but maybe it's not that true. It was meant to be for me, not that I use it every second.

Go Up