k4yt3x / wg-meshconf

WireGuard full mesh configuration generator.
GNU General Public License v3.0
938 stars 105 forks source link

Add pre-shared key option to genconfig #35

Open itoffshore opened 1 year ago

itoffshore commented 1 year ago

This PR is based on an old previous PR & adds a --psk option to genconfig for pre-shared keys:


The pre-shared keys are not stored in the database as they should be being rotated periodically ( they are re-generated every time genconfig is run with --psk).

From a security perspective storing the pre-shared keys along side the private keys defeats their purpose.

ww7 commented 6 months ago

It seems a problem if configs already deployed to remote peers with old PresharedKeys. Any chance to implement a workaround to keep old PresharedKeys when adding new peers?

itoffshore commented 2 months ago

It seems a problem if configs already deployed to remote peers with old PresharedKeys. Any chance to implement a workaround to keep old PresharedKeys when adding new peers?

Hi @ww7 , more recently I've started using & contributing documentation to netbird

There is an option for post-quantum cryptography with pre-shared keys rotated every 2 minutes with rosenpass.eu

Also useful is mutual TLS to remove the need for a VPN. I use mTLS with Knot DNS (it works perfectly)