angristan / wireguard-install

WireGuard VPN installer for Linux servers
https://stanislas.blog/2019/01/how-to-setup-vpn-server-wireguard-nat-ipv6/
MIT License
7.96k stars 1.3k forks source link

LAN Only? #223

Closed vosmiic closed 3 years ago

vosmiic commented 3 years ago

Hi all

Any way to make this work with LAN only? Clients are able to access the internet through my connection when connecting via the WireGuard server.

vosmiic commented 3 years ago

I have worked out how to do this.

Change the Allowed IPs value of the clients config file to 192.168.1.0/24 or whatever range you would like to use.

So for me I changed AllowedIPs = 0.0.0.0/0,::/0 to AllowedIPs = 192.168.1.0/24