Many users

Jason A. Donenfeld Jason at zx2c4.com
Sun Aug 6 22:57:42 CEST 2017


On Sun, Aug 06, 2017 at 10:34:12PM +0200, Bzzzz wrote:
> I guess, when you're talking about "thousands of interfaces", you mean
> virtual ones ? Do you recall how many machines he was using ?

On the same machine, I mean.

I guess you could simulate this kind of thing with:

printf '[Interface]\nPrivateKey=%s\n' "$(wg genkey)" > conf
head -c $(( 33 * 10000 )) /dev/urandom | base64 | tr -d '\n' | fold -b -w 44 | sed -n 's/\(.*\)../[Peer]\nPublicKey=\1A=/p' >> conf
for i in {1..10000}; do ip link add wg$i type wireguard; wg setconf wg$i ./conf; done

Careful, though!

> 
> BTW, for such cases may be it could be interesting to link WG to a
> sqlite DB ?

I've actually got something for this coming through the pipeline soon.
I'll keep the list posted when it's ready.

Jason


More information about the WireGuard mailing list