NHAS / wag

Simple Wireguard 2FA
BSD 3-Clause "New" or "Revised" License
506 stars 27 forks source link

internal DNS question #71

Closed Wyk72 closed 11 months ago

Wyk72 commented 11 months ago

I'm having a lot of troubles making an internal DNS work into WAG.

My goal:

This part WORKS fine.

Now I have difficulty with:

The dns gets blocked (checked with TCPDUMP: the request comes in but the counterpart does not answer)

Can you please enlighten me on HOW to make this DNS work ? i.e.:

NHAS commented 11 months ago

Thanks for opening this as a discrete issue.

I'm going to assume that you're trying to run your dns server on the wag host itself.

To do that you will need to use the ExposePorts directive as wag inserts iptables rules to block inbound traffic.

Wyk72 commented 11 months ago

Yes exactly. That was my issue. I missed it from the istructions. Thanks a lot.