Comment on Help with iptables, using nixos setting up a wiregaurd server for friends
AceSLS@ani.social 5 days ago
Correct me if I’m wrong, but shouldn’t this be as easy as setting AllowedIPs to your server ip in your clients configs aswell as your server config?
Steamymoomilk@sh.itjust.works 5 days ago
so for example, setting 192.168.8.170 on the clients as the only allowed IP aswell as the server would do what i need? thanks for helping trying to navigate my labyrinth of networking :P
AceSLS@ani.social 5 days ago
No, AllowedIPs should be set to your internal Wireguards IPrange
Here’s an example of one of my client configs:
Just be careful to not mess up your subnet masks. For example my [Interface] Address ends with /32 because that only leaves 10.8.0.2 In the [Peer] Section i set it to /16 which will allow the client to connect to 10.8.x.x iirc