I am using the sample config, on server (wg0.conf):
## server configuration (wg0.conf)
[Interface]
Address = 10.13.13.1/24
ListenPort = 51820
PrivateKey = some
## uncomment next two lines if you also want to gain access to your entire lan or if you
## want all traffic to go through the tunnel
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
[Peer]
PublicKey = othersome
AllowedIPs = 10.13.13.2/32
Client is config with the Wireguard application (iPhone), from scratch setting all the parameters. It connects and have access to my LAN (router, NAS, etc.) but has no internet access. The allowed IPs set in the client are 0.0.0.0/0 so it should allow any connection.
One interesting thing is that setting on the client allowed IPs to the VPN (10.13.13.0/24) plus the LAN one (192.168.../24) it works nicely as uses the VPN only for those networks, and internet from its own one (so internet works by this way).
But IMHO it would be interesting to have all the traffic over the VPN as I have a pi-hole configured on the network and would like to set the DNS of the VPN for using it.
The server has internet access with correct DNS, I can ping google.com and works.
I am using it on a Qnap NAS, it doesn't allow kernel implementation so it is using the userspace one.
I am using the sample config, on server (wg0.conf):
Client is config with the Wireguard application (iPhone), from scratch setting all the parameters. It connects and have access to my LAN (router, NAS, etc.) but has no internet access. The allowed IPs set in the client are 0.0.0.0/0 so it should allow any connection. One interesting thing is that setting on the client allowed IPs to the VPN (10.13.13.0/24) plus the LAN one (192.168.../24) it works nicely as uses the VPN only for those networks, and internet from its own one (so internet works by this way). But IMHO it would be interesting to have all the traffic over the VPN as I have a pi-hole configured on the network and would like to set the DNS of the VPN for using it.
The server has internet access with correct DNS, I can
ping google.com
and works.I am using it on a Qnap NAS, it doesn't allow kernel implementation so it is using the userspace one.
Thanks.