This is an automated archive.
The original was posted on /r/wireguard by /u/repolevedamai on 2024-01-18 00:07:57+00:00.
Hi everyone,
I have AGH + wg-easy + unbound setup on a docker-compose environment.
From my mac I can validate that both adblocking and solving DNS rewrites works flawlessly.On my iPhone connected through the VPN the custom DNS rewrites can never be resolved.Has anyone faced similar issues?
Here's part of my setup:
Wireguard
environment:
- WG_HOST=vpn.meshlaneous.dev
- WG_DEFAULT_DNS=10.2.0.100
- WG_DEFAULT_ADDRESS=10.6.0.x
networks:
private_network:
ipv4_address: 10.2.0.3
AGH
networks:
private_network:
ipv4_address: 10.2.0.100
networks:
private_network:
ipam:
driver: default
config:
- subnet: 10.2.0.0/24
Client Wireguard Configuration
[Interface]
PrivateKey = xxxx
Address = 10.6.0.0/24
DNS = 10.2.0.100
[Peer]
PublicKey = xxxxxx
PresharedKey = xxxxxx
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 0
Endpoint = xxxxxxx:51820
I can connect to other devices on my local network through IP, just not through my DNS rewrites set in AGH.
When looking at adguard logs I can see the requests coming from the phone and resolving to the right IP and I can reach that IP directly in my browser.
Any help would be appreciated.
Thanks!
Edit:When mac is connected to VPN DNS rewrites resolving also fails.
Edit2: Mac only works when connected to the network where my redirect IP is reachable, if I connect to my phone 5g network it doesn't work. It seems to be related with being able to connect to the resolved IP from within the container.
Edit3: Added more details.