Many articles are written about this. It’s not that easy, until you understand how it all works. https://engineerworkshop.com/blog/how-to-set-up-wireguard-on-a-raspberry-pi/#generate-server-configuration-wg0-conf-