Blind Joe
Blind Joe2y ago

Setup wireguard on local pc and mac laptop (acces from wan remote desktop)

Hi all. I need to setup fast and save connection to access my windows pc (remote desktop) from my mac from wan. I choosed wireguard for connection and will be great to find tool for remote desktop between mac and windows pc windows (server) mac (client) network specs: router lan address: 192.168.2.1 pc lan address: 192.168.2.3 standard 255 255 255 0 mask all devices have static lan addresses I have static wan ip After install wigeuard I made tunnel named "1". Now I can see that I have 2 new network adapters "wg_server" and "1" - if connection is active. When connection is active I cant access other local network devices and cant ping them, I cant even access router gui but this is only lan device I can ping Ping routerwith wireguard off: Reply from 192.168.2.1: bytes=32 time<1ms TTL=64 ping router with wireguard on: Reply from 192.168.2.1: bytes=32 time<1ms TTL=128 My current wireguard config: server: [Interface] PrivateKey = xxxx ListenPort = 21370 Address = 192.168.2.1/24 Client: [Interface] PrivateKey = Address = 192.168.2.101/24 [Peer] Endpoint = wan ip:21370 AllowedIPs = 0.0.0.0/0 PublicKey = xxxxx
8 Replies
DirtyJ
DirtyJ2y ago
Just to make sure I'm reading this right, you're wanting to access LAN devices from the Windows server while it's connected to the VPN? If so, you'll probably need to tweak the AllowedIPs setting
Blind Joe
Blind JoeOP2y ago
no, I have win 11 pc and want it to act like a sever to wireguard. I want to connect to windows desktop pc in my home from macbook laptop from wan
DirtyJ
DirtyJ2y ago
Alright, so is the issue not being able to connect or not being able to see devices (or the internet) on wireguard?
Blind Joe
Blind JoeOP2y ago
I dont know how to configure it 😛 and I cant ping lan devices when wireguard tunnel connection is active on windows pc
DirtyJ
DirtyJ2y ago
Gotcha, so couple of things you'll have to address. First, to make the LAN devices available on the Windows machine, you'll need to tweak the configuration and allow the local subnet. Found a reddit post that'll walk you through that: https://www.reddit.com/r/WireGuard/comments/e5mm3z/how_to_allow_local_ips_on_windows_10_client/
reddit
r/WireGuard - How to allow local IPs on Windows 10 client?
2 votes and 5 comments so far on Reddit
Blind Joe
Blind JoeOP2y ago
dont work or I did something wrong this is my current windows config [Interface] PrivateKey = cMRr1KjP8Gb1jLgfKPxVqzrmRKXrrwxeDSHlxHnshlk= ListenPort = 21370 Address = 192.168.2.1/24 DNS = 1.1.1.1 [Peer] PublicKey = kdlIOo4n0+fSgFTdvbnV9g8fo8PjqrEn2dC1IIaLhwM= AllowedIPs = 0.0.0.0/5, 8.0.0.0/7, 11.0.0.0/8, 12.0.0.0/6, 16.0.0.0/4, 32.0.0.0/3, 64.0.0.0/2, 128.0.0.0/3, 160.0.0.0/5, 168.0.0.0/6, 172.0.0.0/12, 172.32.0.0/11, 172.64.0.0/10, 172.128.0.0/9, 173.0.0.0/8, 174.0.0.0/7, 176.0.0.0/4, 192.0.0.0/9, 192.128.0.0/11, 192.160.0.0/13, 192.169.0.0/16, 192.170.0.0/15, 192.172.0.0/14, 192.176.0.0/12, 192.192.0.0/10, 193.0.0.0/8, 194.0.0.0/7, 196.0.0.0/6, 200.0.0.0/5, 208.0.0.0/4 Endpoint = wanIP:21370
Blind Joe
Blind JoeOP2y ago
No description
Blind Joe
Blind JoeOP2y ago
okay this is super confusing. I think I am done with this. extremaly bad documentation for this program. I spend 7 hours in 3 days to configure this and nothing I dont even know how to set wireguard server in windows. Hate stupid programs....