hurt-tomatoH
Cyber Info3y ago
10 replies
hurt-tomato

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
Was this page helpful?