OPNsense Forum

English Forums => Virtual private networks => Topic started by: fbeye on August 17, 2023, 06:22:06 pm

Title: WireGuard only allowing LAN access, no more WAN since new install
Post by: fbeye on August 17, 2023, 06:22:06 pm
Hi!

Before I got all crazy and deleted this and that, I figured I would ask first. My wireguard was working fine.. From my iphone I could connect to the vpn, access the LAN and then also have my [home internet] WAN IP and surf the web, was glorious.
I backed up the opnsense. I formatted and reinstalled my proxmox server etc and reinstalled opnsense, and restored my backup. Everything works fine, even wireguard works, but now no internet! Only LAN access.
Any ideas or suggestions?

I will say this; the only change I did do was go from opnsense unbound to using pihole [as a vm] for my dns. But my DHCP/LAN points to [192.168.5.118] my pihole, and it works.... Maybe wireguard is having a problem with that? Would wireguard use the opnsense system/wan DNS or use the lan pihole one?
Title: Re: WireGuard only allowing LAN access, no more WAN since new install
Post by: fbeye on August 17, 2023, 07:53:33 pm
Also, in case I do end up just wanting to remove and restart the WG... I forget, which method was best to follow? I remember back when I began there were 2 and one, for me, did not work...
Title: Re: WireGuard only allowing LAN access, no more WAN since new install
Post by: fbeye on August 18, 2023, 01:39:42 am
Got it fixed!! So, when I originally had it, using the unbound dns, my dns server was 192.168.5.1. Now, using pihole [192.168.5.119] I had to change the DNS in my config..But oddly enough, the pihole ip did not work!!!

I tried to go just 8.8.8.8 on client on iphone and now it works. When I "whats my ip" it does show my home wan Ip so that is good. Just wondering why it does not work with my pihole ip. Anyway, works now.