I have a problem have set up vpn on server and client the vpn works green but no internet throught the tunnel. I have read somewhere that the interface needs to be 10.20.x.x /32 or /24 I set it up this way total noob any ideas believe this config is right. Please dont tell me the wireguard is being blocked.
[Interface]
Address = 10.0.0.2/24
PrivateKey = [hidden]
DNS = 64.6.64.6
MTU = 1380
For peers /24 and /32 can be both, there is not a wrong doing in both, because the ip are virtual, but you cannot use two peers with the exact same tunnel ip, i.e 10.20.x.6/24 and 10.20.x.7/24 this is correct, and can also be presented as 10.20.x.6/32.
The only difference is if you want clients with the vpn subnet talk to each other then you use /24, but if you only want access in the lan segment and want some type of isolation between clients in the tunnel, then /32 is also sufficient, this means the subnet can only have one device and not see others because the subnet does not allow it.
But the server is a different story, if the virtual vpn address shows as 10.20.x.1/24 this is wrong, it should be 10.20.x.0/24 meaning that it is the host address, this is a very common mistake which i also make alot.
My only other recommendations are follow the guide @admon has linked, and try to make the configuration as simple as possible, the lesser of options the better, then if you had success you can add more complexity as much you like.