this post was submitted on 19 Jan 2024
1 points (100.0% liked)

WireGuard

3 readers
1 users here now

WireGuard - a fast, modern, secure VPN Tunnel.

founded 1 year ago
MODERATORS
 
This is an automated archive.

The original was posted on /r/wireguard by /u/Syph3rx on 2024-01-19 15:10:07+00:00.


UPDATE

Fixed! Apparently it was super easy. All I had to do is add 192.168.1.150 (my pihole ip), as the first DNS Server.

So in Network Manager it looks something like this:

IPv4 Settings > DNS servers: 192.168.1.50,1.1.1.1,10.x.x.x (ip that wireguard/proton assigned).

I hope this helps someone who was in the same boat as me.

Below is the original post:

.

.

Hello everyone, I hope you are all doing well.

I have a question about VPN (specifically wireguard).

My Setup:

  • My own rig is Arch with Network Manager. I installed openvpn plugin and can use it to add my wireguard config to connect. Which works, when running curl ifconfig.io I get VPN External IP. (Using .conf instead of .ovpn, since with ovpn it wont connect, keeps asking me for "password").
  • Selfhosted Pi-hole server, purely for ad blocking but also for DNS records. lets say the IP is 192.168.1.150:9000 and domain is pihole.local.domain.com.

on the DNS records, I have a bunch of services i run internally (pass manager, portainer, proxmox, notes taking, etc etc). for example: 192.168.1.160:9000 will be notes.local.domain.com (only accessible from within my network, not from outside/internet).

What I want:

Connect to VPN, have VPN globally enabled for everything. (already works)

But, ignore my local DNS (pihole). Lets say 192.168.1.150 with (sub)-domains: *.local.domain.com.

The Issue:

When I am connected to VPN (protonVPN), everything works. curl ifconfig.io shows vpn external ip.

navigating to 192.168.1.160:9000 also works.

However, what does not work is the domain that is connected to 192.168.1.160:9000 (https://notes.local.domain.com).

Which kind of makes sense to me, since everything is routed through the VPN, even if we are talking about internal DNS server (pihole DNS records).

I hope this kind of makes sense what I just explained. I am not quite pro on this stuff.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here