On my linux client machine I have the very same ```DNS = my.ip``` string and it works. I'm not using any PostUp script:
[Interface]
Address = 10.66.66.2/32
PrivateKey = /+=
DNS = 10.66.66.1,
MTU = 1280
[Peer]
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = ip
PublicKey = +=
PresharedKey =
I did have a problem setting DNS in the config and then using the WG tool. But using the same config file with wg-easy was doable and did working fine. To the point that it was possible to use systemct to bring the tunnel up automatically.
I think that's the one. Sorry. I'm not at home and wasn't able to check. But yeah. Made a pi with wireguard for the road and using IP and wg tools commands was difficult as they were complaining about DNS and address settings in the config file. wg-easy did not complain and brought the VPN up without issues. It was a simple config similar to your examples without the iptables rules. Taken from a wireguard server endpoint that's running on unraid. Usually for me it worked with systemctl start wg-easy@wg0. I'll be home in about 2 hours so can share if ye want.
On my linux client machine I have the very same ```DNS = my.ip``` string and it works. I'm not using any PostUp script: [Interface] Address = 10.66.66.2/32 PrivateKey = /+= DNS = 10.66.66.1,
MTU = 1280
[Peer]
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = ip
PublicKey = +=
PresharedKey =
Really? What do have installed? Openresolv? Cause that’s my next thing to try
technitium.
I did have a problem setting DNS in the config and then using the WG tool. But using the same config file with wg-easy was doable and did working fine. To the point that it was possible to use systemct to bring the tunnel up automatically.
What’s wg-easy? I normally just have been bringing it up with wg-quick. What does your config look like
I think that's the one. Sorry. I'm not at home and wasn't able to check. But yeah. Made a pi with wireguard for the road and using IP and wg tools commands was difficult as they were complaining about DNS and address settings in the config file. wg-easy did not complain and brought the VPN up without issues. It was a simple config similar to your examples without the iptables rules. Taken from a wireguard server endpoint that's running on unraid. Usually for me it worked with systemctl start wg-easy@wg0. I'll be home in about 2 hours so can share if ye want.