Advertisement
Guest User

Untitled

a guest
Aug 6th, 2018
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. # This is a sample config file for TunSafe. It uses the same syntax as
  2. # WireGuard's wg-quick tool
  3.  
  4. [Interface]
  5.  
  6. # The private key of this computer. This is a secret key, don't give it out.
  7. # To convert it to a public key you can go to 'Generate Key Pair' in TunSafe.
  8. PrivateKey = PrivateKey Client
  9.  
  10. # Whether we want to bind a port to allow others to initiate connections to us.
  11. # Please ensure this port is mapped in your router.
  12. #ListenPort = 45302
  13.  
  14. # Switch DNS server while connected
  15. # DNS = 8.8.8.8
  16. #Table = off
  17.  
  18. # The addresses to bind to. Either IPv4 or IPv6. /31 and /32 are not supported.
  19. Address = 10.0.0.2/24
  20.  
  21.  
  22. [Peer]
  23. # The public key of the peer. Do not use the private key here. Use the 'Generate Key Pair'
  24. # function in TunSafe to convert a private key to a public key.
  25. PublicKey = PublicKey Server
  26.  
  27. # It's also possible to use a preshared key for extra security
  28. # PresharedKey = SNz4BYc61amtDhzxNCxgYgdV9rPU+WiC8woX47Xf/2Y=
  29.  
  30. # The IP range that we may send packets to for this peer.
  31. AllowedIPs = 192.168.89.0/24
  32. #AllowedIPs = 10.0.0.0/24
  33.  
  34. # Address of the server
  35. Endpoint = внешний IP сервера:port
  36.  
  37. # Send periodic keepalives to ensure connection stays up behind NAT.
  38. PersistentKeepalive = 25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement