Difference between revisions of "Wireguard"

From Steak Wiki
Jump to navigationJump to search
Line 14: Line 14:
 
AllowedIPs = (what you want to be able to connect to on vpn lan)
 
AllowedIPs = (what you want to be able to connect to on vpn lan)
 
Endpoint = (ipaddress:port)
 
Endpoint = (ipaddress:port)
 +
</pre>
 +
 +
Optional: If you have a windows server w/dns (i.e. domain) use not the vpn router but the windows server as the DNS. However, you may want to also add some other dns (level 4 / google) as backups. e.g.
 +
<pre>
 +
[Interface]
 +
PrivateKey =                       
 +
Address =
 +
DNS = (windows server and the subnet should be on allowed ips, if it isn't already), 4.2.2.2, 8.8.8.8
 
</pre>
 
</pre>

Revision as of 18:08, 27 June 2023

wireguard has a few setup scenarios. each are unique.


windows

download, run installer, add empty tunnel

[Interface]
PrivateKey = (it should auto populate this for you)(public key is above in text field)                          
Address = (the ip you want on the vpn net/32 for one ip)

[Peer]
PublicKey = (find it on server)
AllowedIPs = (what you want to be able to connect to on vpn lan)
Endpoint = (ipaddress:port)

Optional: If you have a windows server w/dns (i.e. domain) use not the vpn router but the windows server as the DNS. However, you may want to also add some other dns (level 4 / google) as backups. e.g.

[Interface]
PrivateKey =                        
Address = 
DNS = (windows server and the subnet should be on allowed ips, if it isn't already), 4.2.2.2, 8.8.8.8