WireGuard: Difference between revisions

imported>HLandau
mNo edit summary
imported>Sjau
No edit summary
Line 41: Line 41:
       peers = [
       peers = [
         # List of allowed peers.
         # List of allowed peers.
         {
         { # Feel free to give a meaning full name
           # Public key of the peer (not a file path).
           # Public key of the peer (not a file path).
           publicKey = "{client public key}";
           publicKey = "{client public key}";
           # List of IPs assigned to this peer within the tunnel subnet. Used to configure routing.
           # List of IPs assigned to this peer within the tunnel subnet. Used to configure routing.
           allowedIPs = [ "10.100.0.2/32" ];
           allowedIPs = [ "10.100.0.2/32" ];
        }
        { # John Doe
          publicKey = "{john doe's public key}";
          allowedIPs = [ "10.100.0.3/32" ];
         }
         }
       ];
       ];