root@Open22Wrt:~# umask go=
root@Open22Wrt:~# wg genkey | tee wgserver.key | wg pubkey > wgserver.pub
root@Open22Wrt:~# WG_KEY="$(cat wgserver.key)"
root@Open22Wrt:~# WG_PSK="$(cat wgclient.psk)"
cat: can't open 'wgclient.psk': No such file or directory
The client keys are supposed to be generated on the client.
So, relevant instructions are listed in the WireGuard client how-to mentioned by @trendy.
This is the canonical implementation of the public-key cryptography concept.
Although, if we consider the server secure enough, we can generate all the keys in one place.
it was unusual to me to understand that client generates its keys by itself, in openVPN all generating goes on server.
now i need to change MTU dont know how, also cant find where is config files for client and server or all configs in /etc/config/network?
Also the WG shows the best perfomance compering to pptp and openvpn on my router up to 10 mbits
adn it is encripted and looks like there is no way to reduce encription