Wireguard - access IP behind NAT

Hello all. I have a wiregaurd server running on a Ubuntu 20.04 server. The server IP is (enp1s0) while the wireguard server is (wg0).

My home network is with the gateway/DNS being

As part of the post-up script, I have;

iptables -t nat -I POSTROUTING -s -o enp1s0 -j MASQUERADE

This setup works well and I can ping / access all my network in the subnet EXCEPT for the server IP where wireguard is running (

I have messing around with trying add the proper routes to the machine running the wireguard server so that I can reach that machine by the address I need to be able to resolve this address as well as this machine is also a domain controller.

Any suggestions?

1 Like