If you use a FQDN for an endpoint, it will fail to work after a reboot:
# show interfaces wireguard wg3 address 172.27.112.2/30 description VPSVULTR peer VPSVULTR { allowed-ips 0.0.0.0/0 endpoint vps.domain.com:2224 persistent-keepalive 15 pubkey xxxxxxxxxxxx }
$ ping 172.27.112.1 PING 172.27.112.1 (172.27.112.1) 56(84) bytes of data. From 172.27.112.2 icmp_seq=1 Destination Host Unreachable From 172.27.112.2 icmp_seq=1 Destination Host Unreachable ... ping: sendmsg: Required key not available
Using the IP for the endpoint, or disabling and reenabling the interface makes it work fine:
# set interfaces wireguard wg3 disable [edit] # commit [edit] # delete interfaces wireguard wg3 disable [edit] # commit [edit] # ping 172.27.112.1 PING 172.27.112.1 (172.27.112.1) 56(84) bytes of data. 64 bytes from 172.27.112.1: icmp_seq=1 ttl=64 time=22.1 ms