Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a sample config file for TunSafe. It uses the same syntax as
- # WireGuard's wg-quick tool
- [Interface]
- # The private key of this computer. This is a secret key, don't give it out.
- # To convert it to a public key you can go to 'Generate Key Pair' in TunSafe.
- PrivateKey = ABC
- # Whether we want to bind a port to allow others to initiate connections to us.
- # Please ensure this port is mapped in your router.
- #ListenPort = 8080
- # Switch DNS server while connected
- # DNS = 8.8.8.8
- # The addresses to bind to. Either IPv4 or IPv6. /31 and /32 are not supported.
- Address = 10.8.0.1/24
- [Peer]
- # The public key of the peer. Do not use the private key here. Use the 'Generate Key Pair'
- # function in TunSafe to convert a private key to a public key.
- PublicKey = XYZ
- # It's also possible to use a preshared key for extra security
- # PresharedKey = SNz4BYc61amtDhzxNCxgYgdV9rPU+WiC8woX47Xf/2Y=
- # The IP range that we may send packets to for this peer.
- AllowedIPs = 10.8.0.1/24
- # Address of the server
- Endpoint = 192.168.1.1:45302
- # Send periodic keepalives to ensure connection stays up behind NAT.
- PersistentKeepalive = 25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement