Before i knew about wireguard in mikrotik i used L2TP+Ipsec. With L2TP+Ipsec i could give the client an ip address that is on the same network as the lan he was connecting to. Is this possible with wireguard? If so please share how its done.
To clarify:
Lan network is 192.168.2.0/24
Windows client installs wireguard and is away from office and wants to connect and have an ip on that same network (192.168.2.0/24)
The way i do it now is like this:
Code: Select all
[Interface]
PrivateKey = someprivatekey
ListenPort = 21232
Address = 10.255.199.3/32
DNS = 19.168.2.1
[Peer]
PublicKey = somepublickey
AllowedIPs = 10.255.199.0/24, 192.168.2.0/24
Endpoint = someendpoint:21232
PersistentKeepalive = 25
But I have a few instances where the device that's on the Lan will only allow an incoming connection from a device that is also on the same Lan as itself. i don't have access to this devices firewall to allow additional additional networks