Skip to content

Instantly share code, notes, and snippets.

@cleytonferrari
Last active November 9, 2022 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleytonferrari/43795e124e2c03395dd1a965df869d7f to your computer and use it in GitHub Desktop.
Save cleytonferrari/43795e124e2c03395dd1a965df869d7f to your computer and use it in GitHub Desktop.

Configuração WireGuard

Configuração máquina Windows

Baixe o instalador do site https://www.wireguard.com/install/ após a instalação clieque em Add Tunnel / Add empty tunnel..., edite para que se pareça com os dados abaixo:

DNS na Interface é para que ele resolva os nomes na rede local

[Interface]
PrivateKey = <GERADA AUTOMATICAMENTE PELO APP DO WINDOWS>
Address = 172.28.20.230/24
DNS = 10.200.200.200

[Peer]
PublicKey = <CHAVE PUBLICA DO WIREGUARD DO MK BORDA>
AllowedIPs = 172.28.20.0/24, 192.168.0.0/16, 10.200.200.0/24
Endpoint = <IP PUBLICO>:13231
PersistentKeepalive = 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment