hello misc. I'm trying to create wg interface, but have no luck.

Here is my /etc/hostname.wg0:

$ cat /etc/hostname.wg0
inet 10.0.0.1/24
wgkey <server private key here>
wgpeer <client pub key here> wgaip 10.0.0.2

after running doas sh /etc/netstart wg0 i have:

$ ifconfig wg0

wg0: flags=80c3<UP,BROADCAST,RUNNING,NOARP,MULTICAST> mtu 1420
    index 6 priority 0 llprio 3
    wgport 9022
    groups: wg
    inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255

and:

$ wg showconf wg0
[Interface]
ListenPort = 9022

why the keys is not configured?

Reply via email to