Hi all, so I am a bit new to OpenWRT and for work, I am supposed to connect to a Wireguard VPN. I use Linux on my main machine.
I have a Gateway from my ISP, which I have the IP passed through to my router and everything is working fine.
When I enable the Wireguard connection on my computers, I cannot connect to the sites on the VPN. However, if I take my laptop to the gateway and plug it in to the gateway (bypassing the router), I am able to connect.
When connecting from behind the router, the behavior seems to mostly be that DNS isn't resolving, because I can get to some of the sites via their VPN IP addresses.
Does anyone have some suggestions as to why this might be happening?
It can help if you show us your configs.
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 keys, passwords, MAC addresses and any public IP addresses you may have but do not redact private RFC 1918 IP addresses (192.168.X.X, 10.X.X.X and 172.16-32.X.X) as that is not needed:
ubus call system board
cat /etc/config/network
cat /etc/config/dhcp
cat /etc/config/firewall
ip route show
ifstatus wan
Otherwise I do not see anything out of the ordinary
In your WireGuard config on your PC set the MTU to 1280 and use a public DNS server like 1.1.1.1
If that works you can increase the MTU to a max of 1420 and try a DNS server which comes with the config
I disabled Peer DNS and added the public DNS, it seemed like the local DNS was not resolving correctly? (I am not sure the root of the problem, unfortunately networking is not my strong suit). My router does have a public IP address, so maybe that is what did it?
Originally I added 9.9.9.9 to my desktop network interface to get it to work, but adding it on the WAN interface allows both my computers to access the VPN