Closed suxus-zz closed 3 years ago
Hello
I found the solution, here is my server (bond0 is because i use link aggragation on my Synology)
[Interface]
Address = 10.0.1.1/32
PrivateKey = SERVER-PRIVATE-KEY
ListenPort = My-Server-Port
PostUp = iptables -t nat -A POSTROUTING -o bond0 -j MASQUERADE
PostDown = iptables -t nat -D POSTROUTING -o bond0 -j MASQUERADE
[Peer] # iPhone
PublicKey = PUBLIC-KEY-CLIENT
AllowedIPs = 10.0.1.3/32
and the client
[Interface]
PublicKey = PUBLIC-KEY-CLIENT
Addresses = 10.0.1.3/32
MTU = 1420
DNS servers = 192.168.99.45 #IP-PiHole
[Peer] # iPhone
PublicKey = PUBLIC-KEY-SERVER
Endpoint: My-DynDNS:My-Server-Port
AllowedIPs = 0.0.0.0/0
All traffic goes thru the server and i can use my local network devices like NAS, MacMini-Server and access to the internet and what's awesome, thanks to the Pi-Hole, everything is ads-free.
Greeting Roger
Glad it's resolved. Closing this issue
Hello
My DS718+ have the IP 192.168.99.23 (Network Bond) and the firewall is inactive. Router: 192.168.99.1 PiHole: 192.168.99.46
This is my wg0.conf (SERVER)
I don't know is the PostUp with "-o bond0" correctly?
And on my iPhone i have this settings.
INTERFACE PublicKey: PUBLIC-KEY-CLIENT Addresses: 192.168.88.2/24 DNS servers: 192.168.99.1
PEER PublicKey: PUBLIC-KEY-SERVER Endpoint: MY-DYNDNS:PORT Persistent keepalive: 15
I can connect to the server with my iPhone. Websites like Google are also displayed correctly, but when I try to connect to my NAS 192.168.99.23:5000 this does not work. Do you have to set something somewhere so that the access from 192.168.88.x to 192.168.99.x works? Or is my DNS setting wrong?
regrads Roger