Hi,
I have a problem with wireguard connection: every time I reboot router (or restart the interface), wireguard doesn't comes up.
I started from scratch: I installed openwrt 19rc2 and setup initial config (no wireguard): all works very good.
Then I installed wireguard packages (wireguard: 0.0.20190702-1) and created/configured wireguard interface, wg01 (for my need I use wireguard connection as wireguard client with a VPN provider):
config interface 'wg01'
option proto 'wireguard'
option private_key 'my_private_key'
option listen_port '55444'
list addresses 'my_ip_address_from_my_provider/32'
option delegate '0'
option auto '0'
config wireguard_wg01
option public_key 'public_key_of_server_vpn_provider'
option description '......'
option persistent_keepalive '25'
option endpoint_port '51820'
list allowed_ips '0.0.0.0/0'
option endpoint_host 'vpn_provider_server_address'
N.B: at this moment, I don't set any routing for this interface and also wg01 interface is not started at router's boot
After reboot, I restart wg01 interface but
ping -I wg01 8.8.8.8
not works (no replies).
So, after reading about the problem with timesynch/low entropy and wireguard, I
- disabled sysntpd
- installed and configured ntpd
- verified ntpd synch with ntpq -pn command
Finally, I also installed rngd and configured with
config rngd
option enabled '1'
option device '/dev/hwrng'
and I also installed haveged package.
Then, I checked my entropy:
cat /proc/sys/kernel/random/entropy_avail
3085
After all this, I restarted wg01 interface:sometimes wireguard comes up (after some minutes), sometimes no (even after 30 minutes).
Finally, if I reboot my router, wireguard doesn't works never (until I manually stop it, and restart it manually many times).
I do not know what else to do: can you help me?
Thanks in advance