I am finalizing a wireguard vpn server but every time I reboot the openwrt system the RP4 becomes unresponsive. I can get it back up by pulling the power cord and plugging it back on. After that I can reach the default address and all the changes prior to the reboot are saved.
At the same time I am having issues with intermittent stoppage of the wireguard connection. I am not sure the two issues are related. I tried several mtu sizes from 1460 to 1280. Also checking the mss clamping. The intermittent stoppage still happens when making those changes.
Without seeing configs, I'm going to guess that the issue is related to an incorrect clock. More on that after we see your configs.
Also, please describe what you mean by unresponsive -- how are you trying to test connectivity? And can you describe how the device is physically being used in your network (a network topology diagram could be really useful).
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
I'm no expert but here are my Wireguard configs for Cloudflare warp for the reference:
config interface 'wg0'
option proto 'wireguard'
option private_key 'xxxxx'
option peerdns '0' <- Disables automatic DNS
list dns '1.1.1.1' <- Cloudflare dns
list addresses '2606:4700xxxxxx' <- Provided by your VPN
list addresses '172.xxxx/32'
config wireguard_wg0
option description 'wgcf-profile.conf'
option public_key 'xxxxxxxxxx'
option endpoint_host 'engage.cloudflareclient.com' <-Sets the host name of the Cloudflare Warp server endpoint. This is where WG will connect to establish the VPN tunnel
option endpoint_port 'xxxx'
list allowed_ips '::/0' <- Enables routing all traffic through the VPN tunnel
list allowed_ips '0.0.0.0/0'
option persistent_keepalive '25' <- If you're behind double NAT. Prevents NAT from closing the connection if inactive
option route_allowed_ips '1' <- Automatically routes all IPs to WG tunnel
I have been changing the MTU sizes because while on social media apps I noticed that videos would stop playing for ~5-20 seconds then restart. After changing the MTU size I reboot but then I cannot reach the router. I have to pull the power cord then plug it back it. After doing that then I can reach the router and all the changes are saved.
Aside from the video pausing issue, I also noticed that the I lose connectivity (only noticed because I was on a call and person could hear me for a few seconds; I turned the VPN off and the call came back; this was on a google voice call). Not sure the two are related.
No. Nothing is plugged into the RP4 aside from the ethernet cord connecting to the primary router provided by the ISP.
Not with me currently.
I did notice one of the small chips on the back of the board loose when I mounting it last night. It was the chip labeled "na167". Aside from the above issues, everything seems to be working properly so I don't know if that loose chip is the source of the problem.
No idea off hand what that device does -- it could be part of the power circuitry. If it's loose, that probably should be addressed. Do you have the necessary equipment and skills to fix that?
I'm going to drive around town to see if I can find anyone who does soldering.
Do you think if it was that, it would be leading to the intermittent video pausing issue? The reboot problem is no big deal if the intermittent video issue goes away.
I have no idea... we don't really have enough information to understand the video pausing issue in the first place as it could be related to a number of different possible factors.
But the reboot issue either sounds like a software issue (i.e. did you install anything else aside from Wireguard relative to the default install) that is causing the hang, or a hardware problem. The reboot should 'just work' so you should make sure that's fixed first.